fix(build) speed up webpack dev build by 4x

Skip type checking, only do it in prod builds (the CI will check those).

Main bundle build times:

- Before: 255101ms
- After: 58463ms
This commit is contained in:
Saúl Ibarra Corretgé 2022-09-19 15:14:39 +02:00 committed by Saúl Ibarra Corretgé
parent e18240cfc6
commit 9bb0decb30
1 changed files with 4 additions and 1 deletions

View File

@ -176,7 +176,10 @@ function getConfig(options = {}) {
}, {
test: /\.tsx?$/,
exclude: /node_modules/,
loader: 'ts-loader'
loader: 'ts-loader',
options: {
transpileOnly: !isProduction // Skip type checking for dev builds.
}
} ]
},
node: {