Skip to content

feat: support vite-style tsconfig resolution#6873

Merged
shulaoda merged 4 commits intomainfrom
11-07-feat_support_vite-style_tsconfig_resolution
Nov 26, 2025
Merged

feat: support vite-style tsconfig resolution#6873
shulaoda merged 4 commits intomainfrom
11-07-feat_support_vite-style_tsconfig_resolution

Conversation

@shulaoda
Copy link
Member

@shulaoda shulaoda commented Nov 7, 2025

closes #4968

Copy link
Member Author

shulaoda commented Nov 7, 2025


How to use the Graphite Merge Queue

Add the label graphite: merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@netlify
Copy link

netlify bot commented Nov 7, 2025

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit ed8b7ef
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6926a9abeb91d700075186af

@shulaoda shulaoda force-pushed the 11-07-feat_support_vite-style_tsconfig_resolution branch 2 times, most recently from 8c37566 to 334316b Compare November 9, 2025 13:01
@shulaoda shulaoda force-pushed the 11-07-feat_support_vite-style_tsconfig_resolution branch from 334316b to c25dac4 Compare November 9, 2025 13:05
graphite-app bot pushed a commit that referenced this pull request Nov 9, 2025
@shulaoda shulaoda changed the base branch from main to graphite-base/6873 November 10, 2025 03:01
@shulaoda shulaoda force-pushed the 11-07-feat_support_vite-style_tsconfig_resolution branch from c25dac4 to 73a2089 Compare November 10, 2025 03:01
@shulaoda shulaoda changed the base branch from graphite-base/6873 to 11-10-chore_deps_update_oxc_resolver November 10, 2025 03:01
@shulaoda shulaoda force-pushed the 11-07-feat_support_vite-style_tsconfig_resolution branch from 73a2089 to 489db0b Compare November 10, 2025 03:05
@github-actions
Copy link
Contributor

github-actions bot commented Nov 10, 2025

Benchmarks Rust

  • target: main(facd6a8)
  • pr: 11-07-feat_support_vite-style_tsconfig_resolution(ed8b7ef)
group                                                        pr                                     target
-----                                                        --                                     ------
bundle/bundle@multi-duplicated-top-level-symbol              1.00     63.8±1.72ms        ? ?/sec    1.01     64.1±1.73ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-sourcemap    1.01     70.2±2.70ms        ? ?/sec    1.00     69.6±3.39ms        ? ?/sec
bundle/bundle@rome_ts                                        1.01    108.2±2.49ms        ? ?/sec    1.00    106.8±1.47ms        ? ?/sec
bundle/bundle@rome_ts-sourcemap                              1.01    120.2±1.73ms        ? ?/sec    1.00    119.6±1.93ms        ? ?/sec
bundle/bundle@threejs                                        1.02     41.0±2.73ms        ? ?/sec    1.00     40.2±2.25ms        ? ?/sec
bundle/bundle@threejs-sourcemap                              1.01     43.8±0.86ms        ? ?/sec    1.00     43.5±0.93ms        ? ?/sec
bundle/bundle@threejs10x                                     1.05    410.9±5.42ms        ? ?/sec    1.00    391.2±3.95ms        ? ?/sec
bundle/bundle@threejs10x-sourcemap                           1.03    466.2±9.85ms        ? ?/sec    1.00    450.8±3.54ms        ? ?/sec
scan/scan@rome_ts                                            1.01     85.6±1.65ms        ? ?/sec    1.00     85.0±1.62ms        ? ?/sec
scan/scan@threejs                                            1.04     29.5±2.10ms        ? ?/sec    1.00     28.4±0.40ms        ? ?/sec
scan/scan@threejs10x                                         1.00    297.2±4.84ms        ? ?/sec    1.00    296.0±4.54ms        ? ?/sec

@shulaoda shulaoda force-pushed the 11-07-feat_support_vite-style_tsconfig_resolution branch from 489db0b to c4a2a6d Compare November 10, 2025 03:23
@shulaoda shulaoda force-pushed the 11-10-chore_deps_update_oxc_resolver branch from 71adc3a to 78d72da Compare November 10, 2025 03:23
@shulaoda shulaoda force-pushed the 11-07-feat_support_vite-style_tsconfig_resolution branch from c4a2a6d to 12ef7f3 Compare November 10, 2025 13:39
@shulaoda shulaoda self-assigned this Nov 22, 2025
@shulaoda shulaoda changed the base branch from 11-10-chore_deps_update_oxc_resolver to graphite-base/6873 November 22, 2025 20:10
@shulaoda shulaoda force-pushed the 11-07-feat_support_vite-style_tsconfig_resolution branch from 12ef7f3 to 77e8bf3 Compare November 22, 2025 20:19
@shulaoda shulaoda changed the base branch from graphite-base/6873 to 11-10-chore_deps_update_oxc_resolver November 22, 2025 20:19
@shulaoda shulaoda force-pushed the 11-07-feat_support_vite-style_tsconfig_resolution branch from 77e8bf3 to 1020a16 Compare November 22, 2025 20:31
@shulaoda shulaoda force-pushed the 11-10-chore_deps_update_oxc_resolver branch from 34581da to b103b65 Compare November 22, 2025 20:57
@shulaoda shulaoda force-pushed the 11-07-feat_support_vite-style_tsconfig_resolution branch 2 times, most recently from f10920d to 4d14185 Compare November 22, 2025 21:23
@shulaoda shulaoda force-pushed the 11-10-chore_deps_update_oxc_resolver branch from b103b65 to 5daa2c4 Compare November 22, 2025 21:29
@shulaoda shulaoda force-pushed the 11-07-feat_support_vite-style_tsconfig_resolution branch 2 times, most recently from 7e521e1 to d65d0c7 Compare November 23, 2025 16:49
@shulaoda shulaoda force-pushed the 11-10-chore_deps_update_oxc_resolver branch from 5daa2c4 to 5973e86 Compare November 23, 2025 16:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 23 out of 23 changed files in this pull request and generated 5 comments.

Comments suppressed due to low confidence (1)

crates/rolldown/src/utils/prepare_build_context.rs:1

  • The find_tsconfig operation is called on every file transformation in Auto mode. While there's caching of the merged options, the tsconfig lookup itself might be repeated. Verify that oxc_resolver's find_tsconfig has its own internal caching, otherwise consider adding a path-to-tsconfig-path cache to avoid redundant filesystem lookups.
use std::{borrow::Cow, path::Path, sync::Arc};

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@shulaoda shulaoda force-pushed the 11-07-feat_support_vite-style_tsconfig_resolution branch from 44fda45 to 6164491 Compare November 26, 2025 06:45
Copilot AI review requested due to automatic review settings November 26, 2025 06:53
@shulaoda shulaoda force-pushed the 11-07-feat_support_vite-style_tsconfig_resolution branch from 6164491 to 26e4526 Compare November 26, 2025 06:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 23 out of 23 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: 翠 <green@sapphi.red>
Signed-off-by: dalaoshu <165626830+shulaoda@users.noreply.github.com>
Copilot AI review requested due to automatic review settings November 26, 2025 07:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 23 out of 23 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 26, 2025 07:09
@shulaoda shulaoda force-pushed the 11-07-feat_support_vite-style_tsconfig_resolution branch from c26ba66 to 90e5f86 Compare November 26, 2025 07:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 23 out of 23 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: dalaoshu <165626830+shulaoda@users.noreply.github.com>
Copilot AI review requested due to automatic review settings November 26, 2025 07:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 23 out of 23 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@shulaoda shulaoda merged commit 5c30011 into main Nov 26, 2025
35 checks passed
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.

[Feature Request]: Support automatic detection of tsconfig.json configuration

3 participants