提交 fa5c0b8a 编写于 作者: P Petr Messner 提交者: 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
上级 355b1ad9
{
"presets": [
"next/babel",
"stage-0"
["@babel/preset-stage-0", { "decoratorsLegacy": true }]
],
}
......@@ -16,6 +16,6 @@
"author": "",
"license": "ISC",
"devDependencies": {
"babel-preset-stage-0": "^6.16.0"
"@babel/preset-stage-0": "^7.0.0-beta.46"
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册