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

master
Nolan Lawson 8 years ago committed by Eugen Rochko
parent a071047c13
commit 3783cadf2d
  1. 3
      config/webpack/loaders/babel.js

@ -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',

Loading…
Cancel
Save