diff --git a/.changeset/performance-tracks-dev-default.md b/.changeset/performance-tracks-dev-default.md new file mode 100644 index 0000000..c39f6f8 --- /dev/null +++ b/.changeset/performance-tracks-dev-default.md @@ -0,0 +1,5 @@ +--- +'@solidjs/vite-plugin': patch +--- + +Chrome Performance panel tracks on by default under `vite dev`. New `performanceTracks` option (`boolean | PerformanceTracksOptions`, default `true`): the plugin injects a client module that calls `@solidjs/web/performance-tracks`' `enablePerformanceTracks()` ahead of the app's entry — a `
` module script for `index.html` apps, the first import of the (generated or authored) client entry in start mode — so hydration and the first interaction land on the timeline without the app enabling the tracks itself. An object passes the adapter's options through (`minMs`, `rich`, `attribution`, serialized into the module); `false` opts out. Dev serve only: never on `vite build` (`dev: true` and `observe` builds included), preview, or in test mode. The dev server already writes its `Server-Timing` metrics, which the tracks read back. Skipped with a startup warning if the installed `@solidjs/web` lacks the `./performance-tracks` subpath. diff --git a/README.md b/README.md index fc11153..902b4df 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,43 @@ and turns on the compiler's source names (see `options.solid.sourceNames`), so g (`