Rolldown panel “Run build” records no session when devtools.apply is "serve"
维护者通常 1 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 58/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- build-system, devtools
调研方向
Reproduce the issue by running the Rolldown panel's “Run build” or VITE_DEVTOOLS_ROLLDOWN=true vite build with devtools.apply set to serve. Start by tracing the build integration from that entry point to node_modules/.rolldown/; done means a new sid_* session is written and appears in the panel without leaving the build hanging.
由索引模型根据 Issue 内容生成。
描述
Describe the bug
In practice, no config gives you a "Run build" that both records a session and exits cleanly.
Versions
vite8.3.2@vitejs/devtools0.7.6@vitejs/devtools-rolldown0.7.6
Config
export default defineConfig({
devtools: { apply: "serve" },
})
apply: "serve" is needed because with the default (devtools: true / apply: "all"), vite build starts a standalone DevTools server after the build and never exits. That hangs CI.
I was a able to hack it using the config below.
Workaround
build: {
rolldownOptions: {
...(process.env["VITE_DEVTOOLS_ROLLDOWN"] === "true" && { devtools: {} }),
},
},
devtools: { apply: "serve" },
Love the tool btw! Exactly what I needed and a considerable upgrade from the old plugin approach that created simple static files.
Reproduction
Steps to reproduce
- Run
vite(dev server). - Open the Rolldown panel in the DevTools dock.
- Click "Run build".
Expected:
A new session is written to node_modules/.rolldown/ and shows up in the panel.
Actual:
The build finishes successfully, but no session is written and the panel has nothing new to show. Running the same command by hand gives the same result:
VITE_DEVTOOLS_ROLLDOWN=true vite build # no new node_modules/.rolldown/sid_* directory
System Info
System:
OS: macOS 27.0.1
CPU: (12) arm64 Apple M2 Max
Memory: 3.99 GB / 64.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 26.10.0 - /opt/homebrew/bin/node
npm: 11.19.1 - /opt/homebrew/bin/npm
Browsers:
Brave Browser: 154.1.96.59
Safari: 27.0.1
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
- 主要语言
- TypeScript
- 星标
- 1.2k
- 派生
- 92
- 平均合并
- 3 天 1 小时
- 30 天内合并 PR
- 22
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
vitejs/devtools 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Not working on Stackblitz (WebContainer)可能已有人在做 @webfansplz 于 7 天前认领。 未关闭bug: upstream
难度 4/5 3-5 天 新手友好度 45/100
vitejs/devtools#603 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Compare module sizes between build sessions可能已有人在做 @webfansplz 于 11 天前认领。 未关闭enhancement
vitejs/devtools#601 · 已指派 1 人 ·
维护者通常 1 天内回复
-
enhancement
难度 3/5 1-2 天 新手友好度 55/100
维护者通常 1 天内回复
-
feat(oxc): add rule timing stats to the lint inspector可能已有人在做 @yuyinws 于 25 天前认领。 未关闭enhancement
vitejs/devtools#584 · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
one-zero-eight/apply-bot#39 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
bigbluebutton/bbb-ui-components-react#108 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
high priority
难度 2/5 1-3 小时 新手友好度 62/100
CI-CMG/deep-sea-corals-exb#84 · 1 条评论 ·