Skip to content

Commit

Permalink
also remove prop-type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
carloluis committed Apr 12, 2018
1 parent a8fec51 commit 120c0c7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,15 @@ const production = {
loader: 'babel-loader',
query: {
presets: ['env', 'stage-2', 'react'],
plugins: ['transform-react-remove-prop-types']
plugins: [
[
'transform-react-remove-prop-types',
{
mode: 'remove',
removeImport: true
}
]
]
}
}
]
Expand Down

0 comments on commit 120c0c7

Please sign in to comment.