Babel ignores anything that is under node_modules, so even adding babel/runtime to the CLI entry point does not help. It is possible to manually specify options for it though. So I used custom ignore option to ignore everything under cloverfield/node_modules but it still did not work properly in runtime, so I had to go with compilation step instead.
For some reason npm treats anything under global node_modules as dependency. including npm-debug.log which just comes as almost empty object (without name or keyword)
I checked some other libraries. For example babel itself comes pre-compiled, so I believe it is the right way to do.
Babel ignores anything that is under node_modules, so even adding
babel/runtime
to the CLI entry point does not help. It is possible to manually specify options for it though. So I used custom ignore option to ignore everything undercloverfield/node_modules
but it still did not work properly in runtime, so I had to go with compilation step instead.I've tested the fresh install with
For some reason npm treats anything under global
node_modules
as dependency. includingnpm-debug.log
which just comes as almost empty object (without name or keyword)I checked some other libraries. For example babel itself comes pre-compiled, so I believe it is the right way to do.