1
0

webpack.config.js 473 B

123456789101112131415161718192021222324
  1. // eslint-disable-next-line @typescript-eslint/no-var-requires
  2. const path = require('path')
  3. module.exports = {
  4. entry: './src/index.ts',
  5. output: {
  6. filename: 'worker.js',
  7. path: path.join(__dirname, 'dist'),
  8. },
  9. devtool: 'cheap-module-source-map',
  10. mode: 'development',
  11. resolve: {
  12. extensions: ['.ts', '.tsx', '.js'],
  13. },
  14. module: {
  15. rules: [
  16. {
  17. test: /\.tsx?$/,
  18. loader: 'ts-loader',
  19. options: {},
  20. },
  21. ],
  22. },
  23. }