ts-checker-rspack-plugin 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/getIssuesWorker.js +7 -8
- package/package.json +1 -1
package/lib/getIssuesWorker.js
CHANGED
|
@@ -1013,6 +1013,7 @@ function createWatchSolutionBuilderHost(parsedConfig, createProgram, reportDiagn
|
|
|
1013
1013
|
let solutionBuilderHost;
|
|
1014
1014
|
let solutionBuilder;
|
|
1015
1015
|
let hostDiagnostics = [];
|
|
1016
|
+
const HOST_DIAGNOSTICS_KEY = `GLOBAL_${worker_config_config.configFile}`;
|
|
1016
1017
|
function useSolutionBuilder() {
|
|
1017
1018
|
if (!solutionBuilderHost) {
|
|
1018
1019
|
const parsedConfig = getParsedConfig();
|
|
@@ -1021,16 +1022,14 @@ function useSolutionBuilder() {
|
|
|
1021
1022
|
return typescript.createSemanticDiagnosticsBuilderProgram(rootNames, compilerOptions, host, oldProgram, configFileParsingDiagnostics, projectReferences);
|
|
1022
1023
|
}, (diagnostic)=>{
|
|
1023
1024
|
hostDiagnostics.push(diagnostic);
|
|
1024
|
-
updateDiagnostics(
|
|
1025
|
+
updateDiagnostics(HOST_DIAGNOSTICS_KEY, hostDiagnostics);
|
|
1025
1026
|
}, (diagnostic)=>{
|
|
1026
|
-
if (6031 === diagnostic.code || 6032 === diagnostic.code)
|
|
1027
|
+
if (6031 === diagnostic.code || 6032 === diagnostic.code) {
|
|
1028
|
+
hostDiagnostics = [];
|
|
1029
|
+
updateDiagnostics(HOST_DIAGNOSTICS_KEY, hostDiagnostics);
|
|
1030
|
+
}
|
|
1027
1031
|
}, void 0, void 0, (builderProgram)=>{
|
|
1028
|
-
|
|
1029
|
-
const programDiagnostics = getDiagnosticsOfProgram(builderProgram);
|
|
1030
|
-
updateDiagnostics(programConfigFile, programConfigFile === worker_config_config.configFile ? [
|
|
1031
|
-
...programDiagnostics,
|
|
1032
|
-
...hostDiagnostics
|
|
1033
|
-
] : programDiagnostics);
|
|
1032
|
+
updateDiagnostics(getConfigFilePathFromBuilderProgram(builderProgram), getDiagnosticsOfProgram(builderProgram));
|
|
1034
1033
|
emitTsBuildInfoIfNeeded(builderProgram);
|
|
1035
1034
|
stopTracingIfNeeded(builderProgram);
|
|
1036
1035
|
});
|