Rolldown panel “Run build” records no session when devtools.apply is "serve"
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 58/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- typescript
- Domaine
- build-system, devtools
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- TypeScript
- Étoiles
- 1.2k
- Forks
- 92
- Merge moyen
- 1 j 23 h
- PR mergées (30 j)
- 18
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de vitejs/devtools
-
docs: manual client injection examples reference removed exportsPeut-être pris @MFA-G l’a pris il y a 8 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
vitejs/devtools#589 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
vitejs/devtools#261 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Not working on Stackblitz (WebContainer)Peut-être pris @webfansplz l’a pris il y a 2 jours. Ouvertebug: upstream
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
vitejs/devtools#603 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Compare module sizes between build sessionsPeut-être pris @webfansplz l’a pris il y a 6 jours. Ouverteenhancement
vitejs/devtools#601 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de vitejs/devtools
Issues similaires
-
[Bug]: Server git tests sign fixture commits with the developer's key when run from the repo rootOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
melgarafael/DeskcommCRM#2657 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
MystenLabs/MemWal#1163 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Mondriaan
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
knaw-huc/textannoviz#709 ·
Les mainteneurs répondent en général sous 1 jour
-
billion-context-pi
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
ranxianglei/billion-context#2521 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour