1
0
Fork 0
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:
John Leon 2018-09-23 17:03:38 -05:00 committed by Tim Neutkens
parent 3bb62928a6
commit ce8b301f24
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{ {
"presets": ["next/babel"], "presets": ["next/babel"],
"plugins": [ "plugins": [
"transform-decorators-legacy", ["@babel/plugin-proposal-decorators", { "decoratorsBeforeExport": true }],
[ [
"import", "import",
{ {

View file

@ -17,6 +17,6 @@
}, },
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"babel-plugin-transform-decorators-legacy": "^1.3.5" "@babel/plugin-proposal-decorators": "^7.1.0"
} }
} }