fix: TS5011 errors with TypeScript 6.0: transpileModule called with rootDir: undefined by errorx666 · Pull Request #1679 · TypeStrong/ts-loader (original) (raw)

@errorx666

@johnnyreilly

@johnnyreilly

@johnnyreilly

@johnnyreilly johnnyreilly changed the titleIssue 1678 fix: TS5011 errors with TypeScript 6.0: transpileModule called with rootDir: undefined

Apr 1, 2026

@johnnyreilly

@johnnyreilly

@johnnyreilly

Added a new feature for trusted publishing in version 9.5.5.

@johnnyreilly

styfle pushed a commit to vercel/ncc that referenced this pull request

Apr 28, 2026

@roryabraham

Summary

Updates ts-loader to 9.5.7 so ncc's bundled TypeScript loader preserves configured rootDir during transpileModule builds.

This fixes TypeScript 6 TS5011 failures like:

TS5011: The common source directory of 'tsconfig.json' is './actions/javascript/...'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.

ts-loader fixed this upstream in TypeStrong/ts-loader#1679.

Verification

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})