Skip to content

Swapping around plugins #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 31, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
  • Loading branch information
scycer authored Aug 31, 2016
commit 6b8862e1e80a34e7b872acadb5e937b5a9d0bb91
2 changes: 1 addition & 1 deletion 1-basic-react/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
loader: 'babel-loader',
query: {
presets: ['react', 'es2015', 'stage-0'],
plugins: ['react-html-attrs', 'transform-class-properties', 'transform-decorators-legacy'],
plugins: ['react-html-attrs', 'transform-decorators-legacy', 'transform-class-properties'],
}
}
]
Expand Down