-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable deadcode removal in babel-minify #777
Conversation
…ad codepath evaluation removing needed expected code.
There are 3 open issues with deadcode removal that may or may not be directly contributing here, but more importantly, until we can fully rely on deadcode removal behavior, I think we should disable this optimization. |
packages/build/src/js-transform.ts
Outdated
@@ -98,14 +98,20 @@ const babelSyntaxPlugins = [ | |||
]; | |||
|
|||
const babelPresetMinify = require('babel-preset-minify')({}, { | |||
// Disable the minify-constant-folding plugin because it has a bug relating to | |||
// Disable the minify-constant-folding plugin because it has a bug relating | |||
// to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reflow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
derp! thanks!
@usergenic Does this also solve #775? |
@moderndeveloperllc I was not able to replicate that problem with current version of bundler. Solving for the 3.x branch may be possible but I've not yet identified what's causing it. |
(edited: "I was not able to replicate") |
Fix issue #724 where deadcode removal in babel-minify can be error prone and result in removal of code which should not be removed and cause hard to debug errors.