Skip to content

fix(cli): override rolldown panic hook with vite-plus branding#1287

Merged
graphite-app[bot] merged 1 commit intomainfrom
fix-panicked-1285
Apr 6, 2026
Merged

fix(cli): override rolldown panic hook with vite-plus branding#1287
graphite-app[bot] merged 1 commit intomainfrom
fix-panicked-1285

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Apr 3, 2026

Since rolldown_binding is bundled into the same NAPI binary, its
module_init panic hook catches all panics and misleadingly shows
"Rolldown panicked" with a link to rolldown's issue tracker.

Replace it at the start of run() with a vite-plus specific hook that
correctly attributes panics and links to the vite-plus bug report.

Closes #1285

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 3, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 5ac585a
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69d36d43f16c070008933149

@fengmk2 fengmk2 self-assigned this Apr 3, 2026
Copy link
Copy Markdown
Member Author

fengmk2 commented Apr 3, 2026


How to use the Graphite Merge Queue

Add the label auto-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.

@fengmk2 fengmk2 marked this pull request as ready for review April 3, 2026 14:23
@fengmk2 fengmk2 requested review from sapphi-red and shulaoda April 3, 2026 14:23
@fengmk2 fengmk2 added the test: e2e Auto run e2e tests label Apr 3, 2026 — with Graphite App
@graphite-app
Copy link
Copy Markdown

graphite-app bot commented Apr 6, 2026

Merge activity

graphite-app bot pushed a commit that referenced this pull request Apr 6, 2026
Since rolldown_binding is bundled into the same NAPI binary, its
module_init panic hook catches all panics and misleadingly shows
"Rolldown panicked" with a link to rolldown's issue tracker.

Replace it at the start of run() with a vite-plus specific hook that
correctly attributes panics and links to the vite-plus bug report.

Closes #1285
@graphite-app graphite-app bot force-pushed the fix-panicked-1285 branch from 09b6e25 to dde546f Compare April 6, 2026 08:18
Since rolldown_binding is bundled into the same NAPI binary, its
module_init panic hook catches all panics and misleadingly shows
"Rolldown panicked" with a link to rolldown's issue tracker.

Replace it at the start of run() with a vite-plus specific hook that
correctly attributes panics and links to the vite-plus bug report.

Closes #1285
@graphite-app graphite-app bot force-pushed the fix-panicked-1285 branch from dde546f to 5ac585a Compare April 6, 2026 08:22
@graphite-app graphite-app bot merged commit 5ac585a into main Apr 6, 2026
32 checks passed
@graphite-app graphite-app bot deleted the fix-panicked-1285 branch April 6, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test: e2e Auto run e2e tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Any panics in viteplus has the panic message generated by Rolldown

2 participants