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(esbuild): do not ignore annotations when the minify shorthand attribute is false #3106

Merged

Conversation

devversion
Copy link
Contributor

Pure annotations are currently always ignored if esbuild(minify = False). There are
cases where a consumer will set fine-grained minification options through args, but
currently cannot do this without setting minify = True as otherwise pure annotations
would always be preserved.

This magical behavior should be removed and the consumer should be
responsible for enabling this if tree-shaking is undesirable.

…ttribute is disabled

Pure annotations are currently always ignored if `esbuild(minify = False)`. There are
cases where a consumer will set fine-grained minification options through `args`, but
currently cannot do this without setting `minify = True` as otherwise pure annotations
would always be preserved.

This magical behavior should be removed and the consumer should be
responsible for enabling this if tree-shaking is undesirable.
@mattem mattem merged commit af70835 into bazelbuild:stable Dec 2, 2021
alexeagle pushed a commit that referenced this pull request Dec 3, 2021
…ttribute is disabled (#3106)

Pure annotations are currently always ignored if `esbuild(minify = False)`. There are
cases where a consumer will set fine-grained minification options through `args`, but
currently cannot do this without setting `minify = True` as otherwise pure annotations
would always be preserved.

This magical behavior should be removed and the consumer should be
responsible for enabling this if tree-shaking is undesirable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants