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 have an es6 module that I'm bundling with webpack and babel-loader, to be consumed by my project via npm. When I add the import (or require) statement to my project, the exports are always returned as an empty object. If I remove the webpack bundling from the module, and transpile with babel-cli only, the exported object is always imported correctly.
Is there an additional config that I need to add to my module to be able to consume the bundled file in another webpack bundle?
The text was updated successfully, but these errors were encountered:
Bundle your es6 module as a library. This way, you can require the bundle to get the exports of its entry module.
Bundle your es6 module using the DLLPlugin. This allows you to require any of the contained modules, not just the entry module, but it might make it harder to use the module without webpack.
Hi,
I have an es6 module that I'm bundling with webpack and babel-loader, to be consumed by my project via npm. When I add the import (or require) statement to my project, the exports are always returned as an empty object. If I remove the webpack bundling from the module, and transpile with babel-cli only, the exported object is always imported correctly.
Is there an additional config that I need to add to my module to be able to consume the bundled file in another webpack bundle?
The text was updated successfully, but these errors were encountered: