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(core): Load polyfills before loading ons internals #2735

Merged
merged 1 commit into from Mar 31, 2020

Conversation

emccorson
Copy link
Contributor

This fixes the problem in the Angular 2 bindings where setImmediate was
being called before it was defined.

This fixes the problem in the Angular 2 bindings where setImmediate was
being called before it was defined.
@emccorson emccorson merged commit ac408fe into master Mar 31, 2020
emccorson added a commit that referenced this pull request Nov 30, 2020
ons.internal was calling a polyfill before it was created. This happens
because ons is an external import so it is hoisted, but setup is inlined
at build time, so the ons code was running before the setup code.

This was supposed to be fixed by #2735 but that fix only worked for UMD,
not for ESM.
@emccorson emccorson deleted the set-immediate-bug branch December 10, 2020 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant