fix: fix build caused by new babel decorators syntax, fixes #487

This commit is contained in:
Roman Hotsiy 2018-05-14 10:38:44 +03:00
parent 42cf18edb3
commit 01f575cc73
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 2 additions and 2 deletions

View File

@ -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,
[

View File

@ -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',