I'm using ESM modules and moduleResolution equal to bundler in my tsconfig.json. This is quite edge and only available in the latest version of the TypeScript.
The issue this brings for me in my codebase:
The solution is to add types section in package.json:
Adding index.d.ts to esm folder with export * from '../cjs' also works. 👍
I'm using ESM modules and
moduleResolution
equal tobundler
in mytsconfig.json
. This is quite edge and only available in the latest version of the TypeScript.The issue this brings for me in my codebase:
The solution is to add
types
section inpackage.json
:Adding
index.d.ts
toesm
folder withexport * from '../cjs'
also works. 👍