mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Fix for with-ant-design-less for next7.0 (#5263)
* Update .babelrc babel-plugin-transform-decorators-legacy does not exist in babel 7 in replace use @babel/plugin-proposal-decorators * Update package.json Acording the last commit please, test this example , will be work .
This commit is contained in:
parent
3bb62928a6
commit
ce8b301f24
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"presets": ["next/babel"],
|
||||
"plugins": [
|
||||
"transform-decorators-legacy",
|
||||
["@babel/plugin-proposal-decorators", { "decoratorsBeforeExport": true }],
|
||||
[
|
||||
"import",
|
||||
{
|
||||
|
|
|
@ -17,6 +17,6 @@
|
|||
},
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"babel-plugin-transform-decorators-legacy": "^1.3.5"
|
||||
"@babel/plugin-proposal-decorators": "^7.1.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue