From ce8b301f240e82457b346a9433b0e205361cef79 Mon Sep 17 00:00:00 2001 From: John Leon Date: Sun, 23 Sep 2018 17:03:38 -0500 Subject: [PATCH] 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 . --- examples/with-ant-design-less/.babelrc | 2 +- examples/with-ant-design-less/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/with-ant-design-less/.babelrc b/examples/with-ant-design-less/.babelrc index 2a55db99..33360b17 100644 --- a/examples/with-ant-design-less/.babelrc +++ b/examples/with-ant-design-less/.babelrc @@ -1,7 +1,7 @@ { "presets": ["next/babel"], "plugins": [ - "transform-decorators-legacy", + ["@babel/plugin-proposal-decorators", { "decoratorsBeforeExport": true }], [ "import", { diff --git a/examples/with-ant-design-less/package.json b/examples/with-ant-design-less/package.json index 4eddd498..ad3dffab 100644 --- a/examples/with-ant-design-less/package.json +++ b/examples/with-ant-design-less/package.json @@ -17,6 +17,6 @@ }, "license": "ISC", "devDependencies": { - "babel-plugin-transform-decorators-legacy": "^1.3.5" + "@babel/plugin-proposal-decorators": "^7.1.0" } }