Skip to content

Commit 0654de7

Browse files
authored
Merge pull request #4120 from dmichon-msft/typescript-split-transpile
[heft-typescript@next] Add "useTranspilerWorker" option
2 parents 2181e95 + b67eb49 commit 0654de7

File tree

18 files changed

+635
-194
lines changed

18 files changed

+635
-194
lines changed

.vscode/launch.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,24 @@
3939
"console": "integratedTerminal",
4040
"internalConsoleOptions": "neverOpen"
4141
},
42+
{
43+
"type": "node",
44+
"request": "launch",
45+
"name": "Debug Build in Selected Project (Heft)",
46+
"cwd": "${fileDirname}",
47+
"runtimeArgs": [
48+
"--nolazy",
49+
"--inspect-brk",
50+
"${workspaceFolder}/apps/heft/lib/start.js",
51+
"--debug",
52+
"build"
53+
],
54+
"skipFiles": ["<node_internals>/**"],
55+
"outFiles": [],
56+
"sourceMaps": true,
57+
"console": "integratedTerminal",
58+
"internalConsoleOptions": "neverOpen"
59+
},
4260
{
4361
"name": "Attach",
4462
"type": "node",

build-tests/heft-typescript-composite-test/src/indexA.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ import(/* webpackChunkName: 'chunk' */ './chunks/ChunkClass')
88
.catch((e) => {
99
console.log('Error: ' + e.message);
1010
});
11+
12+
export {};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
console.log('dostuff');
2+
3+
export {};

build-tests/heft-typescript-composite-test/tsconfig-base.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"noUnusedLocals": true,
1717
"types": ["heft-jest", "webpack-env"],
1818

19+
"isolatedModules": true,
20+
"importsNotUsedAsValues": "error",
21+
1922
"module": "esnext",
2023
"moduleResolution": "node",
2124
"target": "es5",

build-tests/heft-webpack4-everything-test/config/typescript.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,7 @@
5555
// "excludeGlobs": [
5656
// "some/path/*.css"
5757
// ]
58-
}
58+
},
59+
60+
"useTranspilerWorker": true
5961
}

build-tests/heft-webpack4-everything-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"private": true,
66
"scripts": {
77
"build": "heft build --clean",
8-
"start": "heft start",
8+
"start": "heft build-watch --serve",
99
"_phase:build": "heft run --only build -- --clean",
1010
"_phase:test": "heft run --only test -- --clean"
1111
},

build-tests/heft-webpack4-everything-test/src/indexA.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ import(/* webpackChunkName: 'chunk' */ './chunks/ChunkClass')
88
.catch((e) => {
99
console.log('Error: ' + e.message);
1010
});
11+
12+
export {};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
console.log('dostuff');
2+
3+
export {};

build-tests/heft-webpack4-everything-test/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"noUnusedLocals": true,
1717
"types": ["heft-jest", "webpack-env"],
1818
"incremental": true,
19+
"isolatedModules": true,
1920

2021
"module": "esnext",
2122
"moduleResolution": "node",

common/reviews/api/heft-typescript-plugin.api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export interface ITypeScriptConfigurationJson {
5959
// (undocumented)
6060
project?: string;
6161
staticAssetsToCopy?: IStaticAssetsCopyConfiguration;
62+
useTranspilerWorker?: boolean;
6263
}
6364

6465
// @beta (undocumented)

0 commit comments

Comments
 (0)