@solidjs/vite-plugin@3.0.0-next.31
Pre-release
Pre-release
·
13 commits
to main
since this release
Minor Changes
- 8459560: New
start.devtoolsoption: a development toolbar with runtime errors and a
server function inspector, backed by the new optional-peer package
@solidjs/start-devtools. By default the toolbar turns on invite dev
whenever the package resolves (install it as a dev dependency) and stays off
otherwise;start: { devtools: true }makes the package required (a missing
install becomes an error) andstart: { devtools: false }opts out entirely.
Generated client entries wrap the app in the toolbar'sDevToolbarcomponent,
authored client entries get an injected mount import instead, and either way
the wiring is dev-serve-only codegen — production builds and previews contain
none of it. The package itself is resolved from the app graph first and from
the plugin's own location as a fallback, and the virtual toolbar modules
delegate their imports to that captured resolution, so pnpm-isolated installs
work without the package being hoisted to the app root.
Patch Changes
- c8615ed: Apply the request CSP nonce to start mode's generated client-entry script.
- 7c10d3b: Add a generic production error boundary to generated Start entries. It returns a 500 response for uncaught SSR errors and provides a fallback for uncaught client errors. Set
start.errorBoundarytofalsewhen application middleware owns error handling. - e607db7: Add
start.css.filterto control which module graphs are traversed while collecting development CSS.excludeprunes matching graphs (defaults to/node_modules/; providing one replaces the default), andincludeopts matching files in on top of that baseline — e.g.{ include: /node_modules\/some-ui-lib/ }server-inlines that dependency's CSS in dev. A file matching both patterns stays excluded. - 450d0e5: Add Vite 9 forward compatibility by using the per-environment consumer in plugin hooks and accepting Vite 9 as a peer.