Skip to content

Commit

Permalink
fix(loader): add missing babel-plugin (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Jan 31, 2018
1 parent 7166cd4 commit c49b627
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/webpack.js
Expand Up @@ -27,7 +27,10 @@ function svgrLoader(source) {
'@babel/preset-react',
['@babel/preset-env', { modules: false }],
],
plugins: ['@babel/plugin-transform-react-constant-elements'],
plugins: [
'@babel/plugin-transform-react-constant-elements',
'@babel/plugin-proposal-object-rest-spread',
],
},
(err, result) => {
if (err) reject(err)
Expand Down

0 comments on commit c49b627

Please sign in to comment.