-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
esbuild does not tree shake known globals #842
Comments
There is limited support for this already in esbuild here: esbuild/internal/config/globals.go Lines 15 to 24 in f50aa9a
This does not yet encode DOM globals, however. |
Ah good to know. I'm not a Go programmer but willing to give it a "go" if you want some help. Let me know. |
It's ok, this is easy for me. I've got this one. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
esbuild:
Rollup:
For unknown globals (e.g., "class A extends Foo {}"), both esbuild and rollup keep the definition.
It would be great if esbuild could also filter for known globals.
Related:
lit-element
)The text was updated successfully, but these errors were encountered: