GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — Lazy top-level initializations for module transforms by guybedford · Pull Request #16629 · babel/babel Conversation
Contributor
There is a cyclic dependency between babel-helper-module-transforms and babel-core, which is not currently supported in jspm.io for running Babel when it is transpiled into ESM since CJS cycles behave differently to ESM cycles in allowing bindings defined before the require to be available. With this minor refactoring in hoisting I've verified that this gets Babel to work correctly on jspm.io again. There may be even be some minor top-level initialization performance benefits here as well in only initializing used features.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/57327 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
c4c1df0 to
607b490
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks! It's unfortunate that we cannot easily add a test for this, but hopefully once we release Babel 8 (as native ESM) this problem won't risk happening anymore.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.