Skip to content

babel-standalone/babel-preset-env-standalone contains previous version #7016

Closed

Description

@yavorsky

Bug report:

It's issue related rather to standalone packages. For bundles processed before version update, it takes the previous version.

Seems like when we are deploying a new version and making bootstrap, it bundles standalone version before versions in package.json for all packages were updated.
As a result, for https://unpkg.com/@babel/[email protected]/babel.js we will receive instance with Babel.version // beta.32.
It affects REPL also: https://babeljs.io/repl/#?version=7.0.0-beta.33 will show beta.32 in the left bottom corner.
screen shot 2017-12-12 at 12 09 49
👆
screen shot 2017-12-12 at 12 09 45

Expected Behavior

It should show an actual version.

Possible Solution

Check bundling process for new releases.

Your Environment

All environments.

software version(s)
Babel 7.0.0-beta.x
Babylon
node
npm
Operating System

Activity

  1. yavorsky commented on Dec 16, 2017

    @yavorsky
    MemberAuthor

    Didn't see this before, but we have already similar issue: #6174

  2. existentialism commented on Dec 17, 2017

    @existentialism
    Member

    @yavorsky let's merge with #6174 and add a note that babel-preset-env-standalone needs to get fixed as well

  3. yavorsky commented on Dec 17, 2017

    @yavorsky
    MemberAuthor
  4. Daniel15 commented on Dec 17, 2017

    @Daniel15
    Member

    Yeah when babel-standalone was in its own repo, I avoided this issue by bumping the version number before building.

    There's two possible ways to fix it:

    1. Update the build process to bump the version number before building, like the old one did
    2. Have a placeholder for version number, and add a post-version-number-bump step that injects the new version number.
  5. added
    outdated
    on May 3, 2018
  6. locked as resolved and limited conversation to collaborators on May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedpkg: standalone

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions