mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-09 16:35:48 +00:00
68dca26a5d
Webpack seems to fail to import `react-intl/locale-data/*.js` if those files has been proceed by babel, and this also breaks applying our translation. Note that this won't be a problem on English locale, because react-intl includes it as default and works fine without manually added locale-data. Also this issue seems to only occurs on production build, but I'm not sure about reason.
13 lines
315 B
JavaScript
13 lines
315 B
JavaScript
module.exports = {
|
|
test: /\.js$/,
|
|
// include react-intl because transform-react-remove-prop-types needs to apply to it
|
|
exclude: {
|
|
test: /node_modules/,
|
|
exclude: /react-intl[\/\\](?!locale-data)/,
|
|
},
|
|
loader: 'babel-loader',
|
|
options: {
|
|
forceEnv: process.env.NODE_ENV || 'development',
|
|
},
|
|
};
|