Skip to content

feat: add resolve.tsconfigPaths option to resolve with tsconfig paths #277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 27, 2025

Conversation

sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Jun 19, 2025

Description

Adds resolve.tsconfigPaths option that enables tsconfig paths resolution. This option requires experimental.enableNativePlugin to be set to 'resolver' or true.

Currently this feature only supports basic cases. If the tsconfig.json uses references/include/exclude, it won't work as expected.

refs rolldown/rolldown#5004

@sapphi-red
Copy link
Member Author

@sapphi-red
Copy link
Member Author

sapphi-red commented Jun 19, 2025

  • rakkas, nuxt fails with native resolver

@sapphi-red
Copy link
Member Author

Run with native resolver + tsconfig paths support: https://github.com/vitejs/vite-ecosystem-ci/actions/runs/15748739254

@sapphi-red
Copy link
Member Author

  • unocss, vitest, vuepress fails with tsconfig paths support

@sapphi-red

This comment was marked as resolved.

@sapphi-red
Copy link
Member Author

@sapphi-red
Copy link
Member Author

@sapphi-red sapphi-red changed the title feat!: enable resolver native plugin by default feat: add resolve.tsconfigPaths option to resolve with tsconfig paths Jun 26, 2025
@sapphi-red sapphi-red marked this pull request as ready for review June 27, 2025 07:42
@sapphi-red sapphi-red merged commit 5f3ce8b into rolldown-vite Jun 27, 2025
50 of 52 checks passed
@sapphi-red sapphi-red deleted the feat/support-tsconfig-paths branch June 27, 2025 07:54
@sapphi-red sapphi-red mentioned this pull request Jun 27, 2025
2 tasks
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.

1 participant