Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#602 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@webfansplz đang làm issue này rồi.

Từ ngày 8/10/2026.

  • #609 của @webfansplz — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
58/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
build-system, devtools

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
1.2k
Fork
92
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
18

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của vitejs/devtools

Tất cả issue của vitejs/devtools

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.