Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Rolldown panel “Run build” records no session when devtools.apply is "serve"

已关闭
#602 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@webfansplz 已经在做这个了。

开始于 2026年10月8日。

  • #609 来自 @webfansplz —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
58/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript

调研方向

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 内容生成。

描述

bug
Describe the bug

In practice, no config gives you a "Run build" that both records a session and exits cleanly.

Versions

  • vite 8.3.2
  • @vitejs/devtools 0.7.6
  • @vitejs/devtools-rolldown 0.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

  1. Run vite (dev server).
  2. Open the Rolldown panel in the DevTools dock.
  3. 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

vitejs/devtools 的其他 Issue

查看 vitejs/devtools 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。