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

Handle side-effects in tagged template expressions #1508

Merged
merged 2 commits into from
Aug 11, 2017

Conversation

lukastaegert
Copy link
Member

This pull-request will enable rollup to detect side-effects in tagged template expressions by treating them similar to call expressions.

For instance, now rollup will no longer remove the following code:

const x = globalFunction`has effects`;

For more examples, see the corresponding test that has been added.

@Rich-Harris Rich-Harris merged commit 5bdb0cb into rollup:master Aug 11, 2017
@Rich-Harris
Copy link
Contributor

Excellent fix, thank you

@lukastaegert lukastaegert deleted the tagged-template-expressions branch August 12, 2017 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants