diff --git a/demo/webpack.config.ts b/demo/webpack.config.ts index 864e8c8d..6e7f6f25 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 d632d580..c66d46e4 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',