Commit fa5c0b8a authored by Petr Messner's avatar Petr Messner Committed by Tim Neutkens

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
parent 355b1ad9
{ {
"presets": [ "presets": [
"next/babel", "next/babel",
"stage-0" ["@babel/preset-stage-0", { "decoratorsLegacy": true }]
], ],
} }
...@@ -16,6 +16,6 @@ ...@@ -16,6 +16,6 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"babel-preset-stage-0": "^6.16.0" "@babel/preset-stage-0": "^7.0.0-beta.46"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment