Skip to content

fix(optimizer): respect top-level tsconfig option when scanning deps - #24127

Closed
jasleenkaur-qed42 wants to merge 1 commit into
vitejs:mainfrom
jasleenkaur-qed42:fix/24117-scan-top-level-tsconfig
Closed

jasleenkaur-qed42 wants to merge 1 commit into
vitejs:mainfrom
jasleenkaur-qed42:fix/24117-scan-top-level-tsconfig

Conversation

@jasleenkaur-qed42

Copy link
Copy Markdown

fixes #24117
The dependency scanner ignores the top-level tsconfig option, so Rolldown uses the nearest tsconfig.json for each file. If that file is broken, the scan fails, even though vite build succeeds.
The scanner now picks the tsconfig the same way build.ts does. Nothing changes when tsconfig isn't set.
Added a test in scan.spec.ts that fails on main with the TSCONFIG_ERROR error from the issue and passes with this change.

@sapphi-red

Copy link
Copy Markdown
Member

fixed by #24119

@sapphi-red sapphi-red closed this Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dependency scanning ignores an explicit top-level tsconfig

2 participants