create-moost 0.6.35 → 0.6.36

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-moost",
3
- "version": "0.6.35",
3
+ "version": "0.6.36",
4
4
  "description": "create-moost",
5
5
  "keywords": [
6
6
  "composables",
@@ -44,16 +44,16 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@prostojs/rewrite": "^0.2.3",
47
- "@wooksjs/event-cli": "^0.7.22",
47
+ "@wooksjs/event-cli": "^0.7.23",
48
48
  "prompts": "^2.4.2",
49
- "moost": "^0.6.35",
50
- "@moostjs/event-cli": "^0.6.35"
49
+ "@moostjs/event-cli": "^0.6.36",
50
+ "moost": "^0.6.36"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/prompts": "^2.4.9",
54
54
  "vite": "^8.1.5",
55
55
  "vitest": "3.2.7",
56
- "@moostjs/vite": "^0.6.35"
56
+ "@moostjs/vite": "^0.6.36"
57
57
  },
58
58
  "scripts": {
59
59
  "pub": "pnpm publish --access public",
@@ -4,6 +4,19 @@ import { moostVite } from '@moostjs/vite'
4
4
 
5
5
  export default defineConfig({
6
6
  server: { port: 3000 },
7
+ // No `ssr` block on purpose: `vite build` then defaults to `ssr.noExternal: true`,
8
+ // bundling every dependency so the moost/wooks event context exists exactly once.
9
+ //
10
+ // Need something external (a native driver, or to shrink dist/server)? Prefer
11
+ // `ssr.external` ALONE — it composes with the bundle-everything default:
12
+ //
13
+ // ssr: { external: ['better-sqlite3', 'mysql2'] },
14
+ //
15
+ // Adding `ssr.noExternal` flips the policy: everything NOT listed becomes external.
16
+ // Rule: a package with module state — moost/wooks (and any `@atscript/*` package) —
17
+ // is either entirely bundled or entirely external, together with everything that
18
+ // depends on it; a split breaks in production only. `vite build` warns when it
19
+ // detects one — see https://moost.org/webapp/vite#ssr-bundle-size
7
20
  plugins: [
8
21
  vue(),
9
22
  moostVite({