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:
parent
e18240cfc6
commit
9bb0decb30
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue