After tree-shaking, CommonJS usage has broken
harnyk opened this issue · 1 comments
harnyk commented
Now it became impossible to use the library from Node.js as a commonjs module.
Demo:
harnyk commented
FYI @fialkovod
After the change of target
from es5
to es6
in tsconfig.json
, the built files have became es6 modules.
To make it work in recent Node.js "type": "module"
should be also specified in package.json
(both in iuliia
and the application which is using it). But even then it does not seem to work.