Socket
Socket
Sign inDemoInstall

ts-loader

Package Overview
Dependencies
Maintainers
3
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-loader - npm Package Compare versions

Comparing version 9.2.2 to 9.2.3

4

CHANGELOG.md
# 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 @@

8

dist/instances.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc