-
Notifications
You must be signed in to change notification settings - Fork 37
Babel 7 Support #83
Comments
@DangoDev please wait new release (will be in near future) |
@evilebottnawi any news? |
option babel and minifyPreset help me
|
Does this plugin still not support Babel 7? |
@hershmire wangqs1990‘s solution works well. |
I'm not so sure this is stable with babel 7.2.2 and webpack 4.29... Using the above workaround I get:
If I add to the plugin options
|
Sorry, don't have time on this right now, my todo list is very big 😞 |
I'm seeing:
config: new MinifyPlugin({}, {
babel: require("@babel/core"),
minifyPreset: require("babel-preset-minify")
}) I've tried a variation, copying @wangqs1990 suggestion, same result: new MinifyPlugin({
builtIns: false,
mangle: { topLevel: true }
}, {
babel: require("@babel/core"),
minifyPreset: require("babel-preset-minify")
}) |
Hi @gknapp, I am experiencing the exact same isssues as you with Webpack 4.29.6 and Babel 7. |
@jsauca I aborted switching to this plugin for minification and returned to I read this plugin produced better minified code but couldn't get it to work. Chrome inspector's coverage reports drove me to try and seek smaller build sizes - it appears to be somewhat common for reactjs based web app to only have ~50% code coverage / usage. I've read including |
Looks like I have kind of similar issue as @gknapp has, breaks on adding @babel/core as custom 'babel' field value.
|
I tried this and other various tweaks to try and eliminate any unused code. I already had webpack in production mode, I found no difference in bundle size by including
|
I would like to re-enable this plugin, but whenever I do, and try to build, the build process just gets stuck in limbo without any output. Is this issue being worked on? |
This plugin still depends on babel-core 6.23. Any possibility of updating to
@babel/core
instead?The text was updated successfully, but these errors were encountered: