Skip to content

feat: add tsconfig: string option to transform - #10727

Merged
graphite-app[bot] merged 1 commit into
mainfrom
08-07-feat_add_tsconfig_string_option_to_transform_
Aug 20, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
08-07-feat_add_tsconfig_string_option_to_transform_

Conversation

@sapphi-red

@sapphi-red sapphi-red commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Add tsconfig option to transform function exposed from rolldown/utils so that we can specify the tsconfig file from Vite.

needed for vitejs/vite#23310

sapphi-red commented Aug 20, 2026 •

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add the label graphite: merge-when-ready 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.

@sapphi-red
sapphi-red force-pushed the 08-07-fix_clear_resolution_cache_when_tsconfigcache_clear_is_called branch from c52c8dc to eaa3cd3 Compare August 20, 2026 05:16
@sapphi-red
sapphi-red force-pushed the 08-07-feat_add_tsconfig_string_option_to_transform_ branch from d65e042 to d24dff3 Compare August 20, 2026 05:16
@sapphi-red
sapphi-red marked this pull request as ready for review August 20, 2026 05:22
@sapphi-red sapphi-red self-assigned this Aug 20, 2026
@codspeed

codspeed Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 7 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing 08-07-feat_add_tsconfig_string_option_to_transform_ (7d9a934) with 08-07-fix_clear_resolution_cache_when_tsconfigcache_clear_is_called (eaa3cd3)2

Open in CodSpeed

Footnotes

  1. 10 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on 08-07-fix_clear_resolution_cache_when_tsconfigcache_clear_is_called (ede6da9) during the generation of this report, so d92ecd5 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@sapphi-red
sapphi-red force-pushed the 08-07-feat_add_tsconfig_string_option_to_transform_ branch from d24dff3 to 7d9a934 Compare August 20, 2026 05:54
@sapphi-red
sapphi-red force-pushed the 08-07-fix_clear_resolution_cache_when_tsconfigcache_clear_is_called branch from eaa3cd3 to ede6da9 Compare August 20, 2026 05:54

sapphi-red commented Aug 20, 2026 •

Copy link
Copy Markdown
Member Author

Merge activity

  • Aug 20, 11:05 AM UTC: The merge label 'graphite: merge-when-ready' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 20, 11:05 AM UTC: sapphi-red added this pull request to the Graphite merge queue.
  • Aug 20, 11:24 AM UTC: Merged by the Graphite merge queue.

Add `tsconfig` option to `transform` function exposed from `rolldown/utils` so that we can specify the tsconfig file from Vite.

needed for vitejs/vite#23310
@graphite-app
graphite-app Bot force-pushed the 08-07-fix_clear_resolution_cache_when_tsconfigcache_clear_is_called branch from ede6da9 to 874bc9a Compare August 20, 2026 11:15
@graphite-app
graphite-app Bot force-pushed the 08-07-feat_add_tsconfig_string_option_to_transform_ branch from 7d9a934 to 68e968b Compare August 20, 2026 11:15
Base automatically changed from 08-07-fix_clear_resolution_cache_when_tsconfigcache_clear_is_called to main August 20, 2026 11:23
@graphite-app
graphite-app Bot merged commit 68e968b into main Aug 20, 2026
32 of 33 checks passed
@graphite-app
graphite-app Bot deleted the 08-07-feat_add_tsconfig_string_option_to_transform_ branch August 20, 2026 11:24
graphite-app Bot pushed a commit that referenced this pull request Aug 26, 2026
### Description

Fix failed job: https://github.com/rolldown/rolldown/actions/runs/32363650736/job/96409301585, related to #10727

The test used `'/nonexistent/path/test.ts'`. That is absolute on Unix, but not on Windows (`Path::is_absolute()` is false without a drive letter), so the explicit tsconfig was never loaded and Windows CI failed.

oxc-resolver implements that skip before Manual discovery runs:

```rust
// Don't discover tsconfig for paths inside node_modules
if cached_path.inside_node_modules() {
    return Ok(None);
}
// Skip non-absolute paths (e.g. virtual modules)
if !cached_path.path.is_absolute() {
    return Ok(None);
}
```

When `tsconfig` is an explicit path, that tsconfig should be returned for every file, including virtual modules and modules inside `node_modules`? I'm not sure.

Currently Rolldown's explicit `tsconfig` option also behaves this way: it excludes virtual modules and modules inside `node_modules`.
@rolldown-guard rolldown-guard Bot mentioned this pull request Aug 26, 2026
shulaoda added a commit that referenced this pull request Aug 26, 2026
## [1.2.6] - 2026-08-26

### 🚀 Features

- minify: support property name mangling (#10374) by @Dunqing
- add `tsconfig: string` option to `transform` (#10727) by @sapphi-red
- rolldown_plugin_vite_transform: add `tsconfig` option (#10725) by @sapphi-red
- rolldown_plugin_vite_resolve: add top-level `tsconfig` option (#10724) by @sapphi-red
- dev: expose module graph queries on the dev engine handle (#10716) by @h-a-n-a

### 🐛 Bug Fixes

- dev: assign import bindings before initializing dependencies (#10783) by @h-a-n-a
- dev: copy star re-exports before initializing dependencies (#10761) by @h-a-n-a
- dev: register an empty exports object for a module without exports (#10772) by @h-a-n-a
- name the module when a `codeSplitting` group callback returns a wrong type (#10753) by @IWANABETHATGUY
- dev: map dev rename events like build watch (#10758) by @shulaoda
- clear resolution cache when `TsconfigCache::clear` is called (#10726) by @sapphi-red
- dev: resolve in-flight `ensureLatestBuildOutput` when the engine closes (#10730) by @h-a-n-a
- binding: replace undeclared BindingErrorsOr with BindingResult in hook types (#10717) by @h-a-n-a

### 🚜 Refactor

- rolldown_fs_watcher: collapse fs-watcher backends behind a single FsWatcher (#10735) by @shulaoda
- hoist invariants out of the `codeSplitting` group loop (#10744) by @IWANABETHATGUY

### 📚 Documentation

- document shared notify rename mapping (#10759) by @shulaoda
- update watch-mode internals for unified FsWatcher (#10736) by @shulaoda

### ⚡ Performance

- batch `codeSplitting` group `test` / `name` calls (#10745) by @IWANABETHATGUY
- deduplicate used symbol ref readers (#10742) by @Boshen
- reduce release debug formatting (#10728) by @Boshen
- enable compiler cache via `module.enableCompileCache()` (#10678) by @btea
- deduplicate regress codegen (#10732) by @Boshen

### 🧪 Testing

- define: add expected failure for default parameter scope (#10780) by @hyfdev
- use an absolute filename for transform tsconfig path (#10782) by @shulaoda

### ⚙️ Miscellaneous Tasks

- deps: upgrade oxc to 0.147.0 (#10767) by @camc314
- deps: update resolver dependencies (#10766) by @Boshen
- deps: update rollup submodule for tests to v4.62.5 (#10770) by @rolldown-guard[bot]
- deps: update dependency vite-plus to ^0.3.0 (#10757) by @renovate[bot]
- deps: update npm packages (#10750) by @renovate[bot]
- deps: update rust crates (#10748) by @renovate[bot]
- deps: update rust crate napi to v3.12.2 (#10738) by @renovate[bot]
- deps: update dependency rust to v1.98.0 (#10733) by @renovate[bot]
- wasi: cap each Node Test attempt with timeout to survive hangs (#10709) by @hyfdev

Co-authored-by: shulaoda <[email protected]>

This branch was previously deployed

1 inactive deployment
void — 68e968bc Deployed Aug 20, 2026 by graphite-app[bot] via Deploy to Void #3992
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