Skip to content

Commit

Permalink
fix: fix build caused by new babel decorators syntax, fixes #487
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed May 14, 2018
1 parent 42cf18e commit 01f575c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
[
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 01f575c

Please sign in to comment.