Skip to content
This repository was archived by the owner on Aug 19, 2019. It is now read-only.
This repository was archived by the owner on Aug 19, 2019. It is now read-only.

babel 7 errors #9

@laggingreflex

Description

@laggingreflex

I just updated my dependencies to babel 7 and it seems to have broken start-babel-cli. I think it's because it uses babel-register@6 and it seems to be incompatible with other plugins that I'm usng (stage-0) that I've also updated to v7. Particularly the spread operator. Here's a repro:

    "babel-cli": "^7.0.0-alpha.1",
    "babel-preset-es2015": "^7.0.0-alpha.1",
    "babel-preset-stage-0": "^7.0.0-alpha.1",
{
  "presets": [
    "es2015",
    "stage-0"
  ],
}

tasks file:

const a = {}

const b = {}

const c = {...a ,...b}

(doesn't need tasks, it'll break on just parsing)

I think it breaks specifically when babel-register@6 is used in conjunction with other babel-plugins/presets that are v7.

I'm not sure but it could be possible that other way around might break things too - i.e. if start-babel-cli upgrades to babel-register@7 and a project still uses babel plugins @v6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions