@statorjs/stator 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/server/dev.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statorjs/stator",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Server-canonical web framework: business logic in composable state machines, UI as a thin renderer binding machine outputs to DOM positions. Ships TypeScript source (Vite/tsx-native by design).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"pino-pretty": "^13.1.3",
|
|
96
96
|
"vite": "^6.0.0",
|
|
97
97
|
"vitest": "^2.1.0",
|
|
98
|
-
"@statorjs/stator": "2.5.
|
|
98
|
+
"@statorjs/stator": "2.5.1"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
101
|
"typecheck": "tsc --noEmit",
|
package/src/server/dev.ts
CHANGED
|
@@ -127,6 +127,11 @@ export async function createDevApp(config: DevAppConfig): Promise<DevApp> {
|
|
|
127
127
|
const vite = await createViteServer({
|
|
128
128
|
root: resolve(config.root),
|
|
129
129
|
appType: 'custom',
|
|
130
|
+
// Ignore a user `vite.config.*` — the production build already sets this,
|
|
131
|
+
// and reading it only in dev is a dev/prod divergence footgun (a plugin
|
|
132
|
+
// configured there would run in `stator dev` and silently vanish in
|
|
133
|
+
// `stator build`). Stator's own plugins are passed inline below.
|
|
134
|
+
configFile: false,
|
|
130
135
|
server: { middlewareMode: true, hmr: { port: hmrPort } },
|
|
131
136
|
// machineStub keeps server machines out of browser module graphs: island
|
|
132
137
|
// imports of a machine resolve to a `{ name }` stub (SSR loads are
|