typanion
typanion copied to clipboard
fix: add `module` field
What's the problem this PR addresses?
esbuild, by default, doesn't look for .mjs extensions so it picks the commonjs file which it wont tree-shake.
How did you fix it?
Added a module field pointing to the .mjs file.