Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix code gen when removed expression is wrapped in parens #20

Merged
merged 1 commit into from
Nov 13, 2018

Conversation

josephg
Copy link
Contributor

@josephg josephg commented Nov 13, 2018

This fixes #18, which you can run into very easily using tinyify because uglify runs before common-shakeify and it loves to wrap expressions in parenthesis.

Note as per the issue, there's a slightly simpler & cleaner solution to this by modifying common-shake to allow parenthesis support in the walked tree.

@goto-bus-stop goto-bus-stop merged commit 2604a39 into browserify:master Nov 13, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SyntaxError: Unexpected token
2 participants