Skip to content

Commit

Permalink
don't typecheck when building
Browse files Browse the repository at this point in the history
  • Loading branch information
bmesuere committed Nov 12, 2023
1 parent fa7a9d9 commit bee1bc9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions config/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ const config = {
return modulePath.endsWith('.ts') && !modulePath.endsWith('test.ts');
},
exclude: /node_modules/,
use: ["babel-loader", "ts-loader"],
use: [
"babel-loader",
{
loader: 'ts-loader',
options: {
transpileOnly: true,
},
}
],
},
],
},
Expand Down Expand Up @@ -62,7 +70,7 @@ if (process.env.NODE_ENV === "development") {
config.devtool = "inline-source-map";
}

// disable terser minimization when running tests
// disable terser minimization when running
if (process.env.RAILS_ENV === "test") {
config.optimization.minimize = false;
}
Expand Down

0 comments on commit bee1bc9

Please sign in to comment.