-
-
Notifications
You must be signed in to change notification settings - Fork 247
Closed
Labels
Description
Hi,
I wanted to try the new option useTypescriptIncrementalApi. But our build time was as follows:
initial incremental
with 4 workers: 31s 10s
with one worker: 50s 30s
with useTypescriptIncrementalApi: 180s 10s
Incremental was only change to one file, so a little strange to see the difference between 4 workers and 1 worker. Any insights?
We got no incremental build time improvment and a initial build time slow down?
setup:
new ForkTsCheckerWebpackPlugin({
checkSyntacticErrors: true,
async: false,
tsconfig: root('./tsconfig.json'),
tslint: root('./tslint.json'),
useTypescriptIncrementalApi: true,
measureCompilationTime: true,
workers: 1
});
tsconfig.js:
{
"compilerOptions": {
"sourceMap": true,
"target": "es5",
"module": "commonjs",
"noImplicitAny": false,
"noImplicitReturns": true,
"noUnusedLocals": true,
"preserveConstEnums": true,
"removeComments": true,
"version": true,
"importHelpers": true,
"skipLibCheck": true,
"typeRoots": [
"./typings",
"./node_modules/@types"
],
"lib": [
"es5",
"dom",
"scripthost",
"es2015.core",
"es2015.promise",
"ES2016.Array.Include",
"ESNext.Array"
]
},
"exclude": [
"node_modules",
"build",
"coverage",
".idea",
".vscode",
"config"
]
}
package.js
devDependencies: {
"fork-ts-checker-webpack-plugin": "1.0.0-alpha.2",
"thread-loader": "1.2.0",
"ts-loader": "4.4.2",
"typescript": "3.0.1",
"webpack": "4.16.3",
"webpack-cli": "3.1.0",
"webpack-dev-server": "3.1.5"
},
"engines": {
"node": "8.9.4"
}
zanella and stilettk