Skip to content

Commit

Permalink
Don't stick babel plugins in multiple places
Browse files Browse the repository at this point in the history
  • Loading branch information
mqp committed Aug 2, 2018
1 parent de20f07 commit cd909d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .babelrc
Expand Up @@ -8,6 +8,8 @@
],
"plugins": [
[ "react-intl", { "messagesDir": "./public/messages", "enforceDescriptions": false } ],
[ "transform-react-jsx-img-import" ]
"transform-react-jsx-img-import",
"transform-class-properties",
"transform-object-rest-spread"
]
}
5 changes: 1 addition & 4 deletions webpack.config.js
Expand Up @@ -119,10 +119,7 @@ module.exports = (env, argv) => ({
include: [path.resolve(__dirname, "src")],
// Exclude JS assets in node_modules because they are already transformed and often big.
exclude: [path.resolve(__dirname, "node_modules")],
loader: "babel-loader",
query: {
plugins: ["transform-class-properties", "transform-object-rest-spread"]
}
loader: "babel-loader"
},
{
test: /\.(scss|css)$/,
Expand Down

0 comments on commit cd909d5

Please sign in to comment.