-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Please upgrade source-map to 0.7.2 to get speed improvements #7486
Comments
Hey @andreicristianpetcu! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
Here is the downstream issue firefox-devtools/debugger#5598 |
I'm personally interested in getting the update for: babel-generator, babel-cli, babel-core and babel-register since this is needed by debugger.html |
These speed improvements look awesome, but they also come with a price and that is that version |
Can we install version >= 0.7 as an optionalDependency and only use it in node 8? |
Babel should probably first update to 0.6.1 as that contains some breaking API changes, otherwise usage of 0.7 is out of the question anyway. |
I seems also the api changed, so we would need to support different versions in our code
(ups wrong button :) ) |
Oh interesting, if there's no way to create a sourcemap consumer synchronously, I'm not sure there's any way we can use this, since currently Babel exposes primarily synchronous transformation APIs. We've starting to add infrastructure for Babel's APIs being async, but that will take time and will likely require either dropping or rearchitecting For For
|
@loganfsmyth Would you accept a patch to upgrade to
I'm not sure how to get test coverage to that code in babel-cli. That source uses |
This will also fix an annoying issue in VS Code. source-map@<0.7.1 has an invalid |
Closed with #14253 |
Expected Behavior
Babel should use the latest source-map which is v0.7.2. v0.7.2 got support for WebAssembly and it is 10 times faster than the old one. More info here:
https://github.com/mozilla/source-map/blob/master/CHANGELOG.md#072
http://fitzgeraldnick.com/2018/02/26/speed-without-wizardry.html
https://hacks.mozilla.org/2018/01/oxidizing-source-maps-with-rust-and-webassembly/
Current Behavior
Babel uses an old version of source-map
Context
I want source-map to be newer in debugger.html and I see it uses an old source map package since babel requires it.
The text was updated successfully, but these errors were encountered: