Skip to content

[Feature]: Support Babel v8 #15152

@latin-1

Description

@latin-1

🚀 Feature Proposal

Add support for Babel v8.
babel/babel#10746

Currently, using babel-jest and @babel/core@8 produces this error:

Requires Babel "^7.0.0-0", but was loaded with "8.0.0-alpha.11". 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. (While processing: "/.../node_modules/@babel/plugin-syntax-object-rest-spread/lib/index.js")

Furthermore, we could add an option to babel-jest to opt-out the babel-preset-jest (especially, babel-preset-current-node-syntax, which does not make much sense if the developer specified their own babel config).

Motivation

.

Example

No response

Pitch

.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions