Skip to content

Commit 6b8862e

Browse files
authored
Swapping around plugins
swapped 'transform-decorators-legacy' and 'transform-class-properties' as when the 'decorator' goes after 'class' plugin then the ES7 decorators seem to get ignored. i ran into this issue once i started using decorators in mobx tutorial (which has them the correct way around)
1 parent d0752f6 commit 6b8862e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-basic-react/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
loader: 'babel-loader',
1515
query: {
1616
presets: ['react', 'es2015', 'stage-0'],
17-
plugins: ['react-html-attrs', 'transform-class-properties', 'transform-decorators-legacy'],
17+
plugins: ['react-html-attrs', 'transform-decorators-legacy', 'transform-class-properties'],
1818
}
1919
}
2020
]

0 commit comments

Comments
 (0)