diff --git a/.changeset/pre.json b/.changeset/pre.json index 621a584..4b18eac 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -33,6 +33,7 @@ "dev-boundaries-ssr", "dev-css-and-client-manifest", "dev-external-conditions-fidelity", + "dev-false-production-runtime", "dev-manifest-bridge-and-boundary-modules", "dev-middleware-data-address", "dev-middleware-full-dispatch", @@ -127,6 +128,7 @@ "start-setup-hook", "support-tsrx-vite", "true-boxes-arrive", + "ts-lazy-module-url", "turnkey-ssr", "turnkey-start-option", "virtual-manifest-types-subpath", diff --git a/CHANGELOG.md b/CHANGELOG.md index 18f2782..05f1504 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 3.0.0-next.49 + +### Patch Changes + +- be766d6: `dev: false` now serves Solid's production builds under `vite dev`, as documented (#62). The plugin already dropped its own `development` condition, but Vite's default `development|production` condition resolves to `development` in any non-production mode, so the client still pre-bundled `solid.dev.js` / `web.dev.js` and SSR loaded `server.dev.js`. With `dev: false` the plugin now rewrites that condition to `production` under `vite dev`; vitest runs and `vite build` keep Vite's default resolution. Vite conditions apply per environment, so other packages that ship a `development` export also get their production builds in that case. It also stops emitting HMR refresh wrappers and pre-bundling `solid-js/refresh`, because the production refresh runtime is an inert stub that only warns; edits fall back to a full reload. The diagnostics bridge also stays off with `dev: false` unless `observe` is on, since its channels exist only in the dev and observe builds. +- af79dd8: Plain `.ts` and `.js` modules now get lazy callsite module URLs and, on the server, a `$$moduleUrl` export. Non-JSX files used to return before that pipeline, so a `routes.ts` of `lazy(() => import(...))` never told SSR which module to preload. + ## 3.0.0-next.48 ### Minor Changes diff --git a/package.json b/package.json index df7502f..8c8185d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@solidjs/vite-plugin", - "version": "3.0.0-next.48", + "version": "3.0.0-next.49", "description": "solid-js integration plugin for Vite", "type": "module", "engines": {