prateekbh / babel-esm-plugin

Add this plugin to generate mirrored esm modules for your existing bundles
MIT License
192 stars 16 forks source link

Make it work with webpack 3.x #3

Closed prateekbh closed 5 years ago

prateekbh commented 6 years ago

Currently only works with webpack 4.x. Check if this can work with webpack 3.x

evenstensberg commented 6 years ago

Mode is not supported in v3, so that might be harder. Also, the CSS plugins and chunk splits have changed in v4

prateekbh commented 6 years ago

This is just creating a childCompiler and running it with a separate babel config. I am pretty sure mode is not a requirement for this to run.

Its just implementation on hook vs tappable I guess.

evenstensberg commented 6 years ago

That's true. Keep in mind v4 does uglify and optimizations by default when the mode is set to prod

prateekbh commented 5 years ago

stale issue