diff --git a/.babelrc.js b/.babelrc.js index afe37b061..aceed26eb 100644 --- a/.babelrc.js +++ b/.babelrc.js @@ -19,7 +19,7 @@ module.exports = { }, }, ], - '@babel/preset-stage-2', + ['@babel/preset-stage-2', { decoratorsLegacy: true }], '@babel/preset-flow', '@babel/preset-react', ], diff --git a/tools/webpack.config.js b/tools/webpack.config.js index c64ed14da..65c32dd0a 100644 --- a/tools/webpack.config.js +++ b/tools/webpack.config.js @@ -100,7 +100,7 @@ const config = { ], // Experimental ECMAScript proposals // https://babeljs.io/docs/plugins/#presets-stage-x-experimental-presets- - '@babel/preset-stage-2', + ['@babel/preset-stage-2', { decoratorsLegacy: true }], // Flow // https://github.com/babel/babel/tree/master/packages/babel-preset-flow '@babel/preset-flow',