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

Circumvent typeof transform for umd build template #10701

Merged
merged 3 commits into from Nov 13, 2019

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Nov 13, 2019

Q                       A
Fixed Issues? Fixes #10662
Patch: Bug Fix? Yes
Tests Added + Pass? Yes
License MIT

In this PR we revise the umd module build template to avoid typeof transforms. It is not an ideal fix as ultimately we should hoist helper declaration to the program block if referenced by any nodes in the build template.

On the other hand we may skip polyfilling the typeof calls in build template as it is rare to assign a symbol to these global properties.

This PR is a follow-up to #10477.

@JLHwung JLHwung added PR: Bug Fix 🐛 A type of pull request used for our changelog categories area: modules i: regression labels Nov 13, 2019
@JLHwung
Copy link
Contributor Author

JLHwung commented Nov 13, 2019

@langi93 Is that related to this PR?

@jridgewell
Copy link
Member

It's a spam account.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: modules i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Reopen]_typeof function in generated code calls itself before it is defined (T7149)
3 participants