You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that getting typescript and ESM to play nice can be a real PITA, but would it be possible to provide a build for ESM?
Esbuild can handle this, you could perhaps build lib/index.mjs and then put that in the module field in package.json.
The text was updated successfully, but these errors were encountered:
I tried using this in a NextJS ESM project, and the default import is not the default export, rather the module object.
My workaround probably does a better job at explaining the problem:
I know that getting typescript and ESM to play nice can be a real PITA, but would it be possible to provide a build for ESM?
Esbuild can handle this, you could perhaps build
lib/index.mjs
and then put that in themodule
field inpackage.json
.The text was updated successfully, but these errors were encountered: