generator-babel-plugin icon indicating copy to clipboard operation
generator-babel-plugin copied to clipboard

solve #9

Open hax opened this issue 9 years ago • 5 comments

hax avatar Jun 17 '16 10:06 hax

Just add the https://github.com/59naga/babel-plugin-add-module-exports plugin to package.json/the file instead

hzoo avatar Jun 17 '16 10:06 hzoo

@hzoo We only need transform lib/index.js, so add this plugin to config which will apply to src/* seems too heavy?

hax avatar Jun 17 '16 13:06 hax

What do you mean by the plugin being too heavy? It's the same as #8 - need to add to the devDependencies + the babelrc

Oh because there's only 1 file for the plugin; some plugins can have multiple?

hzoo avatar Jun 17 '16 13:06 hzoo

Yes. Maybe we can change build command to babel src -d lib && babel lib/index.js --plugins add-module-exports --out-file lib/index.js?

hax avatar Jun 17 '16 13:06 hax

I think we should just add that plugin all the time

jamiebuilds avatar Jun 21 '16 04:06 jamiebuilds