1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Fix example with-custom-babel-config: update to Babel 7 (#4349)

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
This commit is contained in:
Petr Messner 2018-05-13 00:47:56 +02:00 committed by Tim Neutkens
parent 355b1ad989
commit fa5c0b8a47
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"presets": [
"next/babel",
"stage-0"
["@babel/preset-stage-0", { "decoratorsLegacy": true }]
],
}

View file

@ -16,6 +16,6 @@
"author": "",
"license": "ISC",
"devDependencies": {
"babel-preset-stage-0": "^6.16.0"
"@babel/preset-stage-0": "^7.0.0-beta.46"
}
}