Skip to content

Commit

Permalink
Fix for with-ant-design-less for next7.0 (#5263)
Browse files Browse the repository at this point in the history
* 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 .
  • Loading branch information
andresleoon authored and timneutkens committed Sep 23, 2018
1 parent 3bb6292 commit ce8b301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/with-ant-design-less/.babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"presets": ["next/babel"],
"plugins": [
"transform-decorators-legacy",
["@babel/plugin-proposal-decorators", { "decoratorsBeforeExport": true }],
[
"import",
{
Expand Down
2 changes: 1 addition & 1 deletion examples/with-ant-design-less/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
},
"license": "ISC",
"devDependencies": {
"babel-plugin-transform-decorators-legacy": "^1.3.5"
"@babel/plugin-proposal-decorators": "^7.1.0"
}
}

0 comments on commit ce8b301

Please sign in to comment.