You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
babel-standalone version number runs behind the actual version number #6174
The version number is inserted into babel.js (and babel.min.js) as part of the build. If the version is bumped after building (like what happens when publishing with Lerna), it will contain the old version number. The new alpha.20 release is actually alpha.20, but it returns alpha.19 as its version (so Babel.version returns alpha.19, and the REPL shows alpha.190 as the version number).
I solved that in the standalone babel-standalone repo by bumping the version number before building, but it might be trickier in this case. Suggestions appreciated.
It likely could be, but how would you set the version? I guess we could sed it in the built file or something. Unless you mean re-build babel-standalone as part of the pre-publish script?
Activity
jridgewell commentedon Aug 30, 2017
Can't this be part of the prepublish script?
hzoo commentedon Aug 30, 2017
Yeah other than the fact you don't know the version that it should be right? it should just be the version chosen when choosing in lerna
Daniel15 commentedon Aug 30, 2017
It likely could be, but how would you set the version? I guess we could
sedit in the built file or something. Unless you mean re-build babel-standalone as part of the pre-publish script?existentialism commentedon Dec 17, 2017
From #7016, babel-preset-env-standalone also exhibits this