Repository navigation
Conversation
|
Deploy preview for babel ready! Built with commit b14801f |
|
Interesting idea. It also means that we won't override the version when a range is passed (eg. Let's still fix the version number in the standalone package, of course,. 😄 |
On the other hand, we couldn't exactly know what version we are using for range values like 6. The only way is by opening network tab in the inspector. Currently, it will override version for range values and won't affect just valid semver values, but we can also add range values support if displaying just |
# Conflicts: # js/repl/loadBabel.js
|
What's the status @yavorsky? |
|
@xtuc I think it's ok to merge. And according to the babeljs.io it wasn't fixed with other updates. |
xtuc
left a comment
There was a problem hiding this comment.
We can merge it I think. Currently it's targeting the new website
This is a workaround for babel/babel#7016 and babel/babel#6174
Each babel-standalone bundle includes the previous version, so if, for example, we are loading
@babel/[email protected], thenBabel.versionwill return7.0.0-beta.33So, we are overriding version each time we reload the page and change some query params.
It's easy to reproduce it, just by reloading the page several times and compare version in the query or right left corner.
Try.
After publishing process will be fixed, we still will have old bundles with the previous version, so proposed solution is to don't override version if it's explicit semver value, and override for versions from the bundle for builds from CI.