Skip to content

Circumvent typeof transform for umd build template#10701

Merged
nicolo-ribaudo merged 3 commits intobabel:masterfrom
JLHwung:fix-10662
Nov 13, 2019
Merged

Circumvent typeof transform for umd build template#10701
nicolo-ribaudo merged 3 commits intobabel:masterfrom
JLHwung:fix-10662

Conversation

@JLHwung
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

JLHwung commented Nov 13, 2019

@langi93 Is that related to this PR?

@jridgewell
Copy link
Copy Markdown
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