From 01f575cc73b382754b8495ef0b8a1893ce67ea36 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Mon, 14 May 2018 10:38:44 +0300 Subject: [PATCH] fix: fix build caused by new babel decorators syntax, fixes #487 --- demo/webpack.config.ts | 2 +- webpack.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/webpack.config.ts b/demo/webpack.config.ts index 864e8c8d36..6e7f6f252a 100644 --- a/demo/webpack.config.ts +++ b/demo/webpack.config.ts @@ -31,7 +31,7 @@ const babelLoader = mode => ({ options: { plugins: compact([ '@babel/plugin-syntax-typescript', - '@babel/plugin-syntax-decorators', + ['@babel/plugin-syntax-decorators', { legacy: true }], '@babel/plugin-syntax-jsx', mode !== 'production' ? 'react-hot-loader/babel' : undefined, [ diff --git a/webpack.config.ts b/webpack.config.ts index d632d58066..c66d46e473 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -77,7 +77,7 @@ export default (env: { standalone?: boolean } = {}, { mode }) => ({ options: { plugins: [ '@babel/plugin-syntax-typescript', - '@babel/plugin-syntax-decorators', + ['@babel/plugin-syntax-decorators', { legacy: true }], '@babel/plugin-syntax-jsx', [ 'babel-plugin-styled-components',