Show HN: tsconfig-to-dual-package – support CommonJS and ESM in one package (github.com)

2 points by azu ↗ HN
This tool helps you to create Dual CommonJS/ES module packages. (dual package is a package that can be used from CommonJS and ESM)

It is hard to create dual package in only TypeScript Compiler(`tsc`) because TypeScript do not change import file path by their design goal. This tool create Dual Package by using some tricks in package.json without additional transpiling.

0 comments

[ 3.2 ms ] story [ 13.2 ms ] thread

No comments yet.