-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Treeshaking of sequence expressions #1649
Comments
corneliusweig
pushed a commit
to corneliusweig/rollup
that referenced
this issue
Sep 24, 2017
Looks at each expression in the sequence and only retains the node if it has an effect. Note: in sequence expressions with effects always keep the last node, to be consistent when assigning the resulting value to a variable.
corneliusweig
pushed a commit
to corneliusweig/rollup
that referenced
this issue
Sep 24, 2017
corneliusweig
pushed a commit
to corneliusweig/rollup
that referenced
this issue
Sep 24, 2017
Looks at each expression in the sequence and only retains the node if it has an effect. Note: in sequence expressions with effects always keep the last node, to be consistent when assigning the resulting value to a variable.
corneliusweig
pushed a commit
to corneliusweig/rollup
that referenced
this issue
Sep 24, 2017
corneliusweig
pushed a commit
to corneliusweig/rollup
that referenced
this issue
Sep 29, 2017
Looks at each expression in the sequence and only retains the node if it has an effect. Note: in sequence expressions with effects always keep the last node, to be consistent when assigning the resulting value to a variable.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rollup does not know about the
SequenceExpression
AST node. This means that the following code is not tree-shaken at all:Even though it could be simplified to
The text was updated successfully, but these errors were encountered: