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(bundler): enable tracing @babel/polyfill #1046

Merged
merged 2 commits into from
Feb 11, 2019
Merged

fix(bundler): enable tracing @babel/polyfill #1046

merged 2 commits into from
Feb 11, 2019

Conversation

3cp
Copy link
Member

@3cp 3cp commented Feb 10, 2019

A simple global var "global" is created before load all AMD modules. This is a practical way to support nodejs global var "global". In future we will build on top of dumberjs to properly support nodejs global vars "global", "process", and "Buffer" (the last two are still not supported transparently in aurelia-cli bundler).

core-js uses "var define = ..." everywhere, we need to force cjs wrap before we can switch to dumberjs bundler.

With this fix, @babel/polyfill now works as an AMD module.

A simple global var "global" is created before load all AMD modules. This is a practical way to support nodejs global var "global". In future we will build on top of dumberjs to properly support nodejs global vars "global", "process", and "Buffer" (the last two are still not supported transparently in aurelia-cli bundler). With this fix, @babel/polyfill now works as an AMD module.
core-js uses "var define = ..." everywhere, we need to force cjs wrap before we can switch to dumberjs bundler.
@EisenbergEffect EisenbergEffect merged commit a1ccc1a into aurelia:master Feb 11, 2019
@3cp 3cp deleted the nodejs-global branch February 11, 2019 03:35
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.

2 participants