2017-05-03 09:04:16 +09:00
|
|
|
module.exports = {
|
2017-06-02 00:27:35 +09:00
|
|
|
test: /\.js$/,
|
2017-06-24 01:21:33 +09:00
|
|
|
// include react-intl because transform-react-remove-prop-types needs to apply to it
|
2017-06-25 19:49:53 +09:00
|
|
|
exclude: {
|
|
|
|
test: /node_modules/,
|
|
|
|
exclude: /react-intl[\/\\](?!locale-data)/,
|
|
|
|
},
|
2017-05-06 11:18:23 +09:00
|
|
|
loader: 'babel-loader',
|
|
|
|
options: {
|
2017-05-21 00:31:47 +09:00
|
|
|
forceEnv: process.env.NODE_ENV || 'development',
|
2017-07-18 12:06:31 +09:00
|
|
|
sourceRoot: 'app/javascript',
|
2017-05-21 00:31:47 +09:00
|
|
|
},
|
|
|
|
};
|