about summary refs log tree commit diff
path: root/config/webpack/loaders
diff options
context:
space:
mode:
authorNolan Lawson <nolan@nolanlawson.com>2017-06-23 09:21:33 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-06-23 18:21:33 +0200
commit3783cadf2d7a2b7ace078d1d337645f53c190c69 (patch)
treec2481e9182eff9be588b377037c0c5a9a01c91da /config/webpack/loaders
parenta071047c1333cee6baa389aabd73394749a1af11 (diff)
Apply babel to react-intl to remove prop-types (#3914)
Diffstat (limited to 'config/webpack/loaders')
-rw-r--r--config/webpack/loaders/babel.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/webpack/loaders/babel.js b/config/webpack/loaders/babel.js
index 1acf5e0e6..c23aa9375 100644
--- a/config/webpack/loaders/babel.js
+++ b/config/webpack/loaders/babel.js
@@ -1,6 +1,7 @@
 module.exports = {
   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',
   options: {
     forceEnv: process.env.NODE_ENV || 'development',