-
Notifications
You must be signed in to change notification settings - Fork 98
es to es #14
Comments
How do you mean @jdalton? Both rollup and webpack have Babel plugins which would allow people to thus use this plugin. (I have not used either to confirm they work.) https://github.com/rollup/rollup-plugin-babel |
That's what I'm asking. I'm not super familiar with babel plugins. It's on my shortlist of things to dig into esp if this gets pulled into the lodash org. I've only seen the output of this plugin generate node |
Yeah, it will generate es6 imports if the Babel plugin for modules to commonjs isnt included. The only true requirement imposed is that lodash is imported using es6 syntax https://www.npmjs.com/package/babel-plugin-transform-es2015-modules-commonjs |
Anyway, the one thing to note when using Babel with this plugin and either rollup or webpack is that Babel must be run prior to these bundlers. In the case of rollup (and probably webpack?) es2015-modules-commonjs must be disabled |
Cool! Would you be able to work up a documentation example for that? If not I can dig into it. |
Dup of #15. |
Would this plugin be able to integrate into the rollup or webpack 2 dev setup to enable tree-shaking?
The text was updated successfully, but these errors were encountered: