message: Meta: generate the JS files even when TS errors
diff: @@ -4,7 +4,7 @@ const path = require('path');
  const CopyWebpackPlugin = require('copy-webpack-plugin');
  const TerserPlugin = require('terser-webpack-plugin');
  -module.exports = () => ({
  +module.exports = (env, argv) => ({
  devtool: 'sourcemap',
  entry: {
  content: './source/content',
  @@ -19,7 +19,17 @@ module.exports = () => ({
  rules: [
  {
  test: /\.(js|ts|tsx)$/,
  - use: 'ts-loader',
  + use: [
  + {
  + loader: 'ts-loader',
  + query: {
  + compilerOptions: {
  + // With this, TS will error but the file will still be generated (on watch only)
  + noEmitOnError: argv.watch === false
  + }
  + }
  + }
  + ],
  exclude: /node_modules/
  }
  ]
  