jsRules.js 397 B

1234567891011121314151617181920
  1. const { resolve } = require('./../utils');
  2. const { cacheLoader, threadLoader } = require('./loaders');
  3. module.exports = [
  4. {
  5. test: /\.(js|jsx|ts|tsx)$/,
  6. include: [resolve('src')],
  7. exclude: /node_modules/,
  8. use: [
  9. cacheLoader,
  10. threadLoader(),
  11. {
  12. loader: 'babel-loader',
  13. options: {
  14. cacheDirectory: true,
  15. },
  16. },
  17. ],
  18. },
  19. ];