Skip to content

Babel 7 support #523

@johncalvinroberts

Description

@johncalvinroberts

a 🙋 feature request

Just tried firing up a new bankai this morning and ran into some issues when configuring babel presets.

Expected Behavior

Can install babel 7 @babel/core and other babel presets + plugins for babel 7

Current Behavior

When running bankai start index.js, it threw error:

scripts:browserify.bundle Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.

Code Sample

(from package.json)

{
 ...
  "browserify": {
    "transform": [
        ["babelify", {"presets": ["@babel/preset-env", "@babel/preset-react"]}]
    ]
  }
 ...
}
Software Version(s)
Package [email protected]
Runtime node 10.6.0
Package Manager npm
Operating System macos 10.12.6

Thanks in advance! Bankai is cool :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions