Apply babel to react-intl to remove prop-types (#3914)

lolsob-rspec
Nolan Lawson 2017-06-23 09:21:33 -07:00 committed by Eugen Rochko
parent 12d1565d23
commit 9c246cac5c
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
module.exports = { module.exports = {
test: /\.js$/, test: /\.js$/,
exclude: /node_modules/, // include react-intl because transform-react-remove-prop-types needs to apply to it
exclude: /node_modules\/(?!react-intl)/,
loader: 'babel-loader', loader: 'babel-loader',
options: { options: {
forceEnv: process.env.NODE_ENV || 'development', forceEnv: process.env.NODE_ENV || 'development',