闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
443 B

  1. const { resolve } = require('path');
  2. module.exports = {
  3. test: /\.js$/,
  4. // include react-intl because transform-react-remove-prop-types needs to apply to it
  5. exclude: {
  6. test: /node_modules/,
  7. exclude: /react-intl[\/\\](?!locale-data)/,
  8. },
  9. loader: 'babel-loader',
  10. options: {
  11. forceEnv: process.env.NODE_ENV || 'development',
  12. cacheDirectory: resolve(__dirname, '..', '..', '..', 'tmp', 'cache', 'babel-loader'),
  13. },
  14. };