This repository was archived by the owner on Aug 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
babel 7 errorsΒ #9
Copy link
Copy link
Open
Description
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
Labels
No labels