Skip to content

feat(plugin/vite-resolve): support tsconfig paths#5004

Merged
sapphi-red merged 10 commits intomainfrom
feat/plugin-vite-resolve-support-tsconfig-paths
Jun 26, 2025
Merged

feat(plugin/vite-resolve): support tsconfig paths#5004
sapphi-red merged 10 commits intomainfrom
feat/plugin-vite-resolve-support-tsconfig-paths

Conversation

@sapphi-red
Copy link
Member

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

Adds tsconfig paths support for simple cases. If tsconfig.json uses references/include/exclude, it won't work as expected.

@netlify
Copy link

netlify bot commented Jun 18, 2025

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit cd2eb71
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/685cc9816c3c9f0008c8f94c

@github-actions
Copy link
Contributor

github-actions bot commented Jun 18, 2025

Benchmarks Rust

  • target: main(00fa47e)
  • pr: feat/plugin-vite-resolve-support-tsconfig-paths(cd2eb71)
group                                                        pr                                     target
-----                                                        --                                     ------
bundle/bundle@multi-duplicated-top-level-symbol              1.00     77.3±2.17ms        ? ?/sec    1.01     78.5±2.55ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-sourcemap    1.03     91.1±2.17ms        ? ?/sec    1.00     88.7±2.28ms        ? ?/sec
bundle/bundle@rome_ts                                        1.01    116.5±7.31ms        ? ?/sec    1.00    114.8±2.53ms        ? ?/sec
bundle/bundle@rome_ts-sourcemap                              1.00    134.2±1.57ms        ? ?/sec    1.01    135.4±2.04ms        ? ?/sec
bundle/bundle@threejs                                        1.00     41.2±2.69ms        ? ?/sec    1.00     41.3±1.41ms        ? ?/sec
bundle/bundle@threejs-sourcemap                              1.00     50.6±1.51ms        ? ?/sec    1.02     51.4±1.27ms        ? ?/sec
bundle/bundle@threejs10x                                     1.00    440.8±6.63ms        ? ?/sec    1.00    439.2±4.67ms        ? ?/sec
bundle/bundle@threejs10x-sourcemap                           1.01    513.6±3.94ms        ? ?/sec    1.00    508.4±4.12ms        ? ?/sec
scan/scan@rome_ts                                            1.00     87.9±1.27ms        ? ?/sec    1.00     88.0±1.39ms        ? ?/sec
scan/scan@threejs                                            1.00     31.0±1.80ms        ? ?/sec    1.00     31.0±1.98ms        ? ?/sec
scan/scan@threejs10x                                         1.00    321.7±5.40ms        ? ?/sec    1.00    321.6±3.82ms        ? ?/sec

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jun 19, 2025

Open in StackBlitz

@rolldown/browser

npm i https://pkg.pr.new/@rolldown/browser@5004

@rolldown/debug

npm i https://pkg.pr.new/@rolldown/debug@5004

@rolldown/pluginutils

npm i https://pkg.pr.new/@rolldown/pluginutils@5004

rolldown

npm i https://pkg.pr.new/rolldown@5004

@rolldown/binding-darwin-arm64

npm i https://pkg.pr.new/@rolldown/binding-darwin-arm64@5004

@rolldown/binding-darwin-x64

npm i https://pkg.pr.new/@rolldown/binding-darwin-x64@5004

@rolldown/binding-freebsd-x64

npm i https://pkg.pr.new/@rolldown/binding-freebsd-x64@5004

@rolldown/binding-linux-arm-gnueabihf

npm i https://pkg.pr.new/@rolldown/binding-linux-arm-gnueabihf@5004

@rolldown/binding-linux-arm64-gnu

npm i https://pkg.pr.new/@rolldown/binding-linux-arm64-gnu@5004

@rolldown/binding-linux-arm64-musl

npm i https://pkg.pr.new/@rolldown/binding-linux-arm64-musl@5004

@rolldown/binding-linux-x64-gnu

npm i https://pkg.pr.new/@rolldown/binding-linux-x64-gnu@5004

@rolldown/binding-linux-x64-musl

npm i https://pkg.pr.new/@rolldown/binding-linux-x64-musl@5004

@rolldown/binding-wasm32-wasi

npm i https://pkg.pr.new/@rolldown/binding-wasm32-wasi@5004

@rolldown/binding-win32-arm64-msvc

npm i https://pkg.pr.new/@rolldown/binding-win32-arm64-msvc@5004

@rolldown/binding-win32-ia32-msvc

npm i https://pkg.pr.new/@rolldown/binding-win32-ia32-msvc@5004

@rolldown/binding-win32-x64-msvc

npm i https://pkg.pr.new/@rolldown/binding-win32-x64-msvc@5004

commit: 3703676

@sapphi-red sapphi-red force-pushed the feat/plugin-vite-resolve-support-tsconfig-paths branch from 0f7897c to ea310f5 Compare June 23, 2025 10:56
@sapphi-red sapphi-red marked this pull request as ready for review June 26, 2025 04:05
@sapphi-red sapphi-red added this pull request to the merge queue Jun 26, 2025
@sapphi-red sapphi-red removed this pull request from the merge queue due to a manual request Jun 26, 2025
@sapphi-red sapphi-red enabled auto-merge June 26, 2025 04:21
@sapphi-red sapphi-red added this pull request to the merge queue Jun 26, 2025
Merged via the queue into main with commit b342e85 Jun 26, 2025
23 checks passed
@sapphi-red sapphi-red deleted the feat/plugin-vite-resolve-support-tsconfig-paths branch June 26, 2025 04:28
hyf0 pushed a commit that referenced this pull request Jun 27, 2025
## [1.0.0-beta.21] - 2025-06-27

### 🚀 Features

- rolldown: oxc_resolver v11.3.0 (#5078) by @Boshen
- debug: support to emit `meta.json` (#5075) by @hyf0
- plugin/vite-resolve: support tsconfig paths (#5004) by @sapphi-red

### 🐛 Bug Fixes

- plugin/vite-resolve: resolve glob side effects field correctly (#5079)
by @sapphi-red
- rolldown_plugin_transform: don't load tsconfig for files in
node_modules (#5074) by @sapphi-red
- preserveModules: correctly generate absolute chunk file names (#5072)
by @shulaoda
- vite-tests: fix `pnpm install` failure (#5070) by @shulaoda

### 📚 Documentation

- contrib-guide: add memory profile steps (#5053) by @sapphi-red

### ⚙️ Miscellaneous Tasks

- remove `just lint` in `packages/debug/package.json` (#5080) by @hyf0
- deps: update dependency rolldown-plugin-dts to v0.13.12 (#5077) by
@renovate[bot]
- repo: make `pnpm lint-knip` part of `just lint-node` (#5076) by @hyf0
- infra: move `insta.yaml` to the workspace root (#5073) by @shulaoda

Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants