Skip to content

fix: pick vueCompilerOptions from tsconfig and pass it to vue-tsc#60

Merged
sxzz merged 1 commit intosxzz:mainfrom
cyyynthia:fix-vue-compiler-options
Jul 15, 2025
Merged

fix: pick vueCompilerOptions from tsconfig and pass it to vue-tsc#60
sxzz merged 1 commit intosxzz:mainfrom
cyyynthia:fix-vue-compiler-options

Conversation

@cyyynthia
Copy link
Contributor

Description

The logic for setting up vue-tsc assumes the config comes from a tsconfig.json file, which is never the case as it's loaded beforehand by the plugin. This makes the plugin completely ignore vueCompilerOptions, which is unfortunate.

This PR adapts the logic to make the plugin honor the configuration set in tsconfig.json (or eventually tsconfigRaw). A test has been added to validate the changes.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jul 15, 2025

Open in StackBlitz

npm i https://pkg.pr.new/sxzz/rolldown-plugin-dts@60

commit: 6577ef6

@sxzz sxzz merged commit 4367980 into sxzz:main Jul 15, 2025
11 checks passed
@cyyynthia cyyynthia deleted the fix-vue-compiler-options branch July 15, 2025 18:49
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.

2 participants