nalgeon/iuliia-js

After tree-shaking, CommonJS usage has broken

harnyk opened this issue · 1 comments

Context:
#2
#13

Now it became impossible to use the library from Node.js as a commonjs module.

Demo:

https://runkit.com/corporateanon/61ee5abe7ade1e00089ab898

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.