npm ts-loader 10.0.0-rc.1
v10.0.0-rc.1

51 minutes ago
  • Move to the TypeScript 7.1 release candidate and use its diagnostic helpers - thanks @johnnyreilly

  • The minimum supported TypeScript version is now 7.1.1-rc, the TypeScript 7.1 release candidate. The 7.1 beta is no longer supported: ts-loader now uses flattenDiagnosticMessage and sortAndDeduplicateDiagnostics from typescript/sync, which the beta does not have.

  • The typescript peer dependency range is now >=7.1.1-rc || >=7.2.0-0. It was >=7.1.0-beta, which did not admit the release candidate or typescript@next.

  • A file's errors are reported in file order: by position, then by error code. Before, they came in the order TypeScript's API returns them, which puts syntax errors ahead of type errors.

  • Two errors at the same place with the same code and text are both reported if they differ in their elaboration or related information. Before, the second was dropped.

  • Remove the getCustomTransformers, resolveModuleName and resolveTypeReferenceDirective options - thanks @johnnyreilly

  • Breaking: the getCustomTransformers, resolveModuleName and resolveTypeReferenceDirective loader options are removed. Setting one now fails the build with an "unexpected loader option" error. The betas accepted them and did nothing with them, so a build that relied on one succeeded with different output and no notice. TypeScript's native API has no custom transformers, and ts-loader passes it no custom resolvers; a build that needs either should stay on ts-loader 9.

  • Setting projectReferences: true now gives a warning that the option has no effect. Project references in tsconfig.json are followed without it, and ts-loader does not build referenced projects to disk the way tsc --build does.

See v9 options that v10 removes.

Don't miss a new ts-loader release

NewReleases is sending notifications on new releases.