From c097c4a05c4c4607ba92d79f755fb4860f600886 Mon Sep 17 00:00:00 2001 From: Novikov Bogdan Date: Thu, 3 May 2018 17:14:49 +0300 Subject: [PATCH] * fix: babel preset legacy, fix #1607 --- .babelrc.js | 2 +- tools/webpack.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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',