ts-loader
Advanced tools
+5
-0
| # Changelog | ||
| ## 9.5.4 | ||
| * [chore: typescript 5.9 upgrade](https://github.com/TypeStrong/ts-loader/pull/1676) - thanks @johnnyreilly | ||
| Skipping 9.5.3 due to a publishing issue | ||
| ## 9.5.2 | ||
@@ -4,0 +9,0 @@ * [fix: add more detailed error messages](https://github.com/TypeStrong/ts-loader/pull/1665) - thanks @hai-x |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"after-compile.d.ts","sourceRoot":"","sources":["../src/after-compile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAInC,OAAO,KAAK,EAIV,UAAU,EAEX,MAAM,cAAc,CAAC;AAUtB;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,UAAU,EACpB,cAAc,EAAE,MAAM,GAAG,SAAS,iBAKb,OAAO,CAAC,WAAW,YAAY,MAAM,IAAI,UAoD/D"} | ||
| {"version":3,"file":"after-compile.d.ts","sourceRoot":"","sources":["../src/after-compile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAInC,OAAO,KAAK,EAIV,UAAU,EAEX,MAAM,cAAc,CAAC;AAUtB;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,UAAU,EACpB,cAAc,EAAE,MAAM,GAAG,SAAS,IAK1B,aAAa,OAAO,CAAC,WAAW,EAAE,UAAU,MAAM,IAAI,UAoD/D"} |
@@ -273,3 +273,3 @@ "use strict"; | ||
| function removeCompilationTSLoaderErrors(compilation, loaderOptions) { | ||
| compilation.errors = compilation.errors.filter(error => error.details !== (0, utils_1.tsLoaderSource)(loaderOptions)); | ||
| compilation.errors = compilation.errors.filter(error => error instanceof webpack.WebpackError && error.details !== (0, utils_1.tsLoaderSource)(loaderOptions)); | ||
| } | ||
@@ -276,0 +276,0 @@ function removeModuleTSLoaderError(module, loaderOptions) { |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAWxC,OAAO,KAAK,EAEV,aAAa,EAId,MAAM,cAAc,CAAC;AAYtB;;GAEG;AACH,iBAAS,MAAM,CACb,IAAI,EAAE,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,EAC1C,QAAQ,EAAE,MAAM,EAChB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAcrC;AAkrBD,SAAS,MAAM,CAAC;AAEhB;;GAEG;AAEH,kBAAU,MAAM,CAAC;IAEf,UAAiB,OAAQ,SAAQ,aAAa;KAAG;CAClD"} | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAWxC,OAAO,KAAK,EAEV,aAAa,EAId,MAAM,cAAc,CAAC;AAYtB;;GAEG;AACH,iBAAS,MAAM,CACb,IAAI,EAAE,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,EAC1C,QAAQ,EAAE,MAAM,EAChB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAcrC;AAmrBD,SAAS,MAAM,CAAC;AAEhB;;GAEG;AAEH,kBAAU,MAAM,CAAC;IAEf,UAAiB,OAAQ,SAAQ,aAAa;KAAG;CAClD"} |
+14
-12
@@ -182,3 +182,4 @@ "use strict"; | ||
| var _a; | ||
| return typeof plugin === 'object' && | ||
| return plugin !== null && | ||
| typeof plugin === 'object' && | ||
| ((_a = plugin.constructor) === null || _a === void 0 ? void 0 : _a.name) === 'ForkTsCheckerWebpackPlugin'; | ||
@@ -320,13 +321,14 @@ }); | ||
| addDependenciesFromSolutionBuilder(instance, filePath, addDependency); | ||
| loaderContext._module.buildMeta.tsLoaderDefinitionFileVersions = | ||
| dependencies.map(defFilePath => path.relative(loaderContext.rootContext, defFilePath) + | ||
| '@' + | ||
| ((0, utils_1.isReferencedFile)(instance, defFilePath) | ||
| ? instance | ||
| .solutionBuilderHost.getInputFileStamp(defFilePath) | ||
| .toString() | ||
| : (instance.files.get(instance.filePathKeyMapper(defFilePath)) || | ||
| instance.otherFiles.get(instance.filePathKeyMapper(defFilePath)) || { | ||
| version: '?', | ||
| }).version)); | ||
| if (loaderContext._module && loaderContext._module.buildMeta) | ||
| loaderContext._module.buildMeta.tsLoaderDefinitionFileVersions = | ||
| dependencies.map(defFilePath => path.relative(loaderContext.rootContext, defFilePath) + | ||
| '@' + | ||
| ((0, utils_1.isReferencedFile)(instance, defFilePath) | ||
| ? instance | ||
| .solutionBuilderHost.getInputFileStamp(defFilePath) | ||
| .toString() | ||
| : (instance.files.get(instance.filePathKeyMapper(defFilePath)) || | ||
| instance.otherFiles.get(instance.filePathKeyMapper(defFilePath)) || { | ||
| version: '?', | ||
| }).version)); | ||
| return getOutputAndSourceMapFromOutputFiles(outputFiles); | ||
@@ -333,0 +335,0 @@ } |
@@ -86,3 +86,3 @@ "use strict"; | ||
| return { | ||
| error: (0, utils_1.makeError)(loaderOptions, colors.red('error while reading tsconfig.json:' + constants_1.EOL + message), file), | ||
| error: (0, utils_1.makeError)(loaderOptions, colors.red('error while reading tsconfig.json:' + constants_1.EOL + message), file !== null && file !== void 0 ? file : ''), | ||
| }; | ||
@@ -89,0 +89,0 @@ } |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"watch-run.d.ts","sourceRoot":"","sources":["../src/watch-run.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAGxC,OAAO,KAAK,EAAe,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI3E;;GAEG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,UAAU,EACpB,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,cAS1B,OAAO,CAAC,QAAQ,YAAY,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,IAAI,UAwDpE"} | ||
| {"version":3,"file":"watch-run.d.ts","sourceRoot":"","sources":["../src/watch-run.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAGxC,OAAO,KAAK,EAAe,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI3E;;GAEG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,UAAU,EACpB,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,IASpC,UAAU,OAAO,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,IAAI,UAwDpE"} |
@@ -80,3 +80,3 @@ "use strict"; | ||
| } | ||
| else { | ||
| else if (typeof source === 'string') { | ||
| const text = JSON.parse(source); | ||
@@ -86,2 +86,7 @@ (0, servicesHost_1.updateFileWithText)(instance, key, filePath, () => text); | ||
| } | ||
| else if (Buffer.isBuffer(source)) { | ||
| const text = JSON.parse(source.toString('utf8')); | ||
| (0, servicesHost_1.updateFileWithText)(instance, key, filePath, () => text); | ||
| resolve(); | ||
| } | ||
| }); | ||
@@ -88,0 +93,0 @@ } |
+2
-2
| { | ||
| "name": "ts-loader", | ||
| "version": "9.5.2", | ||
| "version": "9.5.4", | ||
| "description": "TypeScript loader for webpack", | ||
@@ -97,3 +97,3 @@ "main": "index.js", | ||
| "rimraf": "^2.6.2", | ||
| "typescript": "^5.7.2", | ||
| "typescript": "^5.9.2", | ||
| "webpack": "^5.74.0", | ||
@@ -100,0 +100,0 @@ "webpack-cli": "^4.10.0" |
258767
0.27%3158
0.22%