ts-loader
Advanced tools
Comparing version 9.2.2 to 9.2.3
# Changelog | ||
## v9.2.3 | ||
* [Fix error message for invalid getCustomTransformers modules](https://github.com/TypeStrong/ts-loader/issues/1334) - thanks @blaky | ||
## v9.2.2 | ||
@@ -4,0 +8,0 @@ |
@@ -233,3 +233,3 @@ "use strict"; | ||
if (typeof customerTransformers !== 'function') { | ||
throw new Error(`Custom transformers in "${instance.loaderOptions.getCustomTransformers}" should export a function, got ${typeof getCustomTransformers}`); | ||
throw new Error(`Custom transformers in "${instance.loaderOptions.getCustomTransformers}" should export a function, got ${typeof customerTransformers}`); | ||
} | ||
@@ -262,4 +262,6 @@ getCustomTransformers = customerTransformers; | ||
instance.watchHost = servicesHost_1.makeWatchHost(getScriptRegexp(instance), loader, instance, instance.configParseResult.projectReferences); | ||
instance.watchOfFilesAndCompilerOptions = instance.compiler.createWatchProgram(instance.watchHost); | ||
instance.builderProgram = instance.watchOfFilesAndCompilerOptions.getProgram(); | ||
instance.watchOfFilesAndCompilerOptions = | ||
instance.compiler.createWatchProgram(instance.watchHost); | ||
instance.builderProgram = | ||
instance.watchOfFilesAndCompilerOptions.getProgram(); | ||
instance.program = instance.builderProgram.getProgram(); | ||
@@ -266,0 +268,0 @@ instance.transformers = getCustomTransformers(instance.program); |
@@ -120,9 +120,3 @@ import type * as typescript from 'typescript'; | ||
update(compilerOptions: typescript.CompilerOptions): void; | ||
getPackageJsonInfoCache?(): any; | ||
} | ||
export interface TypeReferenceDirectiveResolutionCache { | ||
getOrCreateCacheForDirectory(directoryName: string, redirectedReference?: typescript.ResolvedProjectReference): Map<string, typescript.ResolvedTypeReferenceDirectiveWithFailedLookupLocations>; | ||
clear(): void; | ||
update(compilerOptions: typescript.CompilerOptions): void; | ||
} | ||
export interface TSInstance { | ||
@@ -136,3 +130,3 @@ compiler: typeof typescript; | ||
moduleResolutionCache?: ModuleResolutionCache; | ||
typeReferenceResolutionCache?: TypeReferenceDirectiveResolutionCache; | ||
typeReferenceResolutionCache?: typescript.TypeReferenceDirectiveResolutionCache; | ||
/** | ||
@@ -139,0 +133,0 @@ * a cache of all the files |
{ | ||
"name": "ts-loader", | ||
"version": "9.2.2", | ||
"version": "9.2.3", | ||
"description": "TypeScript loader for webpack", | ||
@@ -96,3 +96,3 @@ "main": "index.js", | ||
"rimraf": "^2.6.2", | ||
"typescript": "^4.0.0", | ||
"typescript": "^4.3.2", | ||
"webpack": "^5.20.0", | ||
@@ -99,0 +99,0 @@ "webpack-cli": "^4.5.0" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
246577
3024