You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior:
I am trying to improve build performance of my project by concurrently triggering "tsc --noEmit" and "gulp" in parallel threads.
I would've expected gulp to skip type checking if I set isolatedModules to true and only emit js, dts files. Actual behavior:
If isolated modules is set to true, declaration flag gets set to false in project setup. Due to this .d.ts files are not emitted.
Here's the code from project.js:
if (options.isolatedModules) {
options.newLine = typescript.NewLineKind.LineFeed;
options.sourceMap = false;
options.declaration = false;
options.inlineSourceMap = true;
}
Your gulpfile: Include your gulpfile, or only the related task (with ts.createProject).
Expected behavior:
I am trying to improve build performance of my project by concurrently triggering "tsc --noEmit" and "gulp" in parallel threads.
I would've expected gulp to skip type checking if I set isolatedModules to true and only emit js, dts files.
Actual behavior:
If isolated modules is set to true, declaration flag gets set to false in project setup. Due to this .d.ts files are not emitted.
Here's the code from project.js:
if (options.isolatedModules) {
options.newLine = typescript.NewLineKind.LineFeed;
options.sourceMap = false;
options.declaration = false;
options.inlineSourceMap = true;
}
Your gulpfile:
Include your gulpfile, or only the related task (with
ts.createProject
).tsconfig.json
Include your tsconfig, if related to this issue.
Code
Include your TypeScript code, if necessary.
The text was updated successfully, but these errors were encountered: