Skip to content

Commit 01f575c

Browse files
committed
fix: fix build caused by new babel decorators syntax, fixes #487
1 parent 42cf18e commit 01f575c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

demo/webpack.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const babelLoader = mode => ({
3131
options: {
3232
plugins: compact([
3333
'@babel/plugin-syntax-typescript',
34-
'@babel/plugin-syntax-decorators',
34+
['@babel/plugin-syntax-decorators', { legacy: true }],
3535
'@babel/plugin-syntax-jsx',
3636
mode !== 'production' ? 'react-hot-loader/babel' : undefined,
3737
[

webpack.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default (env: { standalone?: boolean } = {}, { mode }) => ({
7777
options: {
7878
plugins: [
7979
'@babel/plugin-syntax-typescript',
80-
'@babel/plugin-syntax-decorators',
80+
['@babel/plugin-syntax-decorators', { legacy: true }],
8181
'@babel/plugin-syntax-jsx',
8282
[
8383
'babel-plugin-styled-components',

0 commit comments

Comments
 (0)