Rolldown panel “Run build” records no session when devtools.apply is "serve"
Maintainer thường phản hồi trong vòng 1 ngày
Đá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ả
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.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của vitejs/devtools
-
docs: manual client injection examples reference removed exportsCó thể đã có người làm @MFA-G đã nhận 8 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
vitejs/devtools#589 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
vitejs/devtools#261 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Not working on Stackblitz (WebContainer)Có thể đã có người làm @webfansplz đã nhận 2 ngày trước. Đang mởbug: upstream
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
vitejs/devtools#603 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Compare module sizes between build sessionsCó thể đã có người làm @webfansplz đã nhận 6 ngày trước. Đang mởenhancement
vitejs/devtools#601 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của vitejs/devtools
Issue tương tự
-
[Bug]: Server git tests sign fixture commits with the developer's key when run from the repo rootĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
melgarafael/DeskcommCRM#2657 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
MystenLabs/MemWal#1163 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Mondriaan
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
knaw-huc/textannoviz#709 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
billion-context-pi
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ranxianglei/billion-context#2521 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày