-
-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
Describe the bug
If a plugin generates any ssr
config, vite automatically creates a fallback ssr environment.
vite-plugin-inspect wait until all environments are built before emitting metadata.json
vite-plugin-inspect/src/node/build.ts
Line 32 in 7959c26
if (!ranLast && remainingEnvs.size === 0) { |
But if you build an spa with regular vite build
, the ssr fallback environment is never built and so inspect build output isn't completed.
Reproduction
https://stackblitz.com/edit/vitejs-vite-kiuo477f?file=vite.config.js&terminal=dev
System Info
stackblitz
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.
Contributions
- I am willing to submit a PR to fix this issue
- I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
Metadata
Metadata
Assignees
Labels
No labels