Skip to content

Commit c9b3ea8

Browse files
committed
Add babel-plugin-transform-decorators-legacy
1 parent f428c91 commit c9b3ea8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/webpack.config.babel.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ export default {
1313
loader: 'babel',
1414
exclude: /node_modules/,
1515
query: {
16-
presets: ['es2015', 'stage-0', 'react']
16+
presets: ['es2015', 'stage-0', 'react'],
17+
plugins: [
18+
'transform-decorators-legacy'
19+
]
1720
}
1821
}
1922
]

0 commit comments

Comments
 (0)