@mantiq/vite 0.1.3 → 0.3.0-rc.2
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 +5 -4
- package/src/contracts/Vite.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantiq/vite",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-rc.2",
|
|
4
4
|
"description": "Vite dev server & manifest integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"LICENSE"
|
|
41
41
|
],
|
|
42
42
|
"scripts": {
|
|
43
|
-
"build": "bun build ./src/index.ts --outdir ./dist --target bun",
|
|
43
|
+
"build": "bun build ./src/index.ts --outdir ./dist --target bun --packages=external",
|
|
44
44
|
"test": "bun test",
|
|
45
45
|
"typecheck": "tsc --noEmit",
|
|
46
46
|
"clean": "rm -rf dist"
|
|
@@ -48,10 +48,11 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"bun-types": "latest",
|
|
50
50
|
"typescript": "^5.7.0",
|
|
51
|
-
"vite": "^
|
|
51
|
+
"vite": "^8.0.0",
|
|
52
|
+
"@mantiq/core": "workspace:*"
|
|
52
53
|
},
|
|
53
54
|
"peerDependencies": {
|
|
54
55
|
"@mantiq/core": "^0.1.0",
|
|
55
|
-
"vite": ">=
|
|
56
|
+
"vite": ">=8.0.0"
|
|
56
57
|
}
|
|
57
58
|
}
|
package/src/contracts/Vite.ts
CHANGED
|
@@ -19,8 +19,8 @@ export interface ViteConfig {
|
|
|
19
19
|
/** SSR entry module path (e.g. 'src/ssr.tsx') */
|
|
20
20
|
entry: string
|
|
21
21
|
/** Production SSR bundle path. Default: 'bootstrap/ssr/ssr.js' */
|
|
22
|
-
bundle?: string
|
|
23
|
-
}
|
|
22
|
+
bundle?: string | undefined
|
|
23
|
+
} | undefined
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/** A single chunk entry in the Vite 5+ manifest. */
|
|
@@ -67,12 +67,12 @@ export interface PageOptions {
|
|
|
67
67
|
/** Result returned by an SSR module's render() function. */
|
|
68
68
|
export interface SSRResult {
|
|
69
69
|
html: string
|
|
70
|
-
head?: string
|
|
70
|
+
head?: string | undefined
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/** The SSR module must export a render() function matching this shape. */
|
|
74
74
|
export interface SSRModule {
|
|
75
|
-
render(url: string, data?: Record<string, unknown>): Promise<SSRResult> | SSRResult
|
|
75
|
+
render(url: string, data?: Record<string, unknown> | undefined): Promise<SSRResult> | SSRResult
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/** Options passed to `vite.render()` for universal (Inertia-like) page responses. */
|