Skip to content

Commit

Permalink
Fix example with-custom-babel-config: update to Babel 7 (vercel#4349)
Browse files Browse the repository at this point in the history
The option `"decoratorsLegacy": true` seems mandatory, fails without it:

> The new decorators proposal is not supported yet. You must pass the `"decoratorsLegacy": true` option to @babel/preset-stage-0
  • Loading branch information
messa authored and timneutkens committed May 12, 2018
1 parent 355b1ad commit fa5c0b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/with-custom-babel-config/.babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"presets": [
"next/babel",
"stage-0"
["@babel/preset-stage-0", { "decoratorsLegacy": true }]
],
}
2 changes: 1 addition & 1 deletion examples/with-custom-babel-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"author": "",
"license": "ISC",
"devDependencies": {
"babel-preset-stage-0": "^6.16.0"
"@babel/preset-stage-0": "^7.0.0-beta.46"
}
}

0 comments on commit fa5c0b8

Please sign in to comment.