From: Nolan Lawson Date: Fri, 23 Jun 2017 16:21:33 +0000 (-0700) Subject: Apply babel to react-intl to remove prop-types (#3914) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=3783cadf2d7a2b7ace078d1d337645f53c190c69;p=mastodon.git Apply babel to react-intl to remove prop-types (#3914) --- 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',