Skip to content
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

Fix tree-shaking DCE #1575

Merged
merged 2 commits into from
Jun 25, 2018
Merged

Fix tree-shaking DCE #1575

merged 2 commits into from
Jun 25, 2018

Conversation

fathyb
Copy link
Contributor

@fathyb fathyb commented Jun 18, 2018

Fixes #1549. Tiny refactor of the node removal part of the DCE to handle more wild cases and do the removal recursively on parents.

Did this before going to work, will update later to fix/add tests.
Feedback appreciated, fixes keycode and material-ui (build, didn't had time to runtime test, cc @oliviertassinari).

It breaks DCE on babel-minify but not on Uglify.

@oliviertassinari
Copy link

I will try the patch out :)

@devongovett devongovett merged commit b62132c into master Jun 25, 2018
@devongovett devongovett deleted the fix/shake-dce branch June 25, 2018 04:57
devongovett pushed a commit that referenced this pull request Oct 15, 2018
devongovett pushed a commit that referenced this pull request Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Property right of AssignmentExpression expected node to be of a type ["Expression"] but instead got null
3 participants