eclipsa 0.1.5 → 0.1.7
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/vite/mod.mjs +21 -18
- package/vite/mod.mjs.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eclipsa",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"homepage": "https://github.com/pnsk-lab/eclipsa",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/pnsk-lab/eclipsa/issues"
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@eclipsa/optimizer": "^0.1.
|
|
66
|
+
"@eclipsa/optimizer": "^0.1.7",
|
|
67
67
|
"fast-glob": "^3.3.2",
|
|
68
68
|
"hono": "^4.6.4"
|
|
69
69
|
},
|
package/vite/mod.mjs
CHANGED
|
@@ -2416,7 +2416,7 @@ const renderRouteResponse = async (route, pathname, params, c, moduleUrl, status
|
|
|
2416
2416
|
url: getRequestUrl(c.req.raw),
|
|
2417
2417
|
},
|
|
2418
2418
|
);
|
|
2419
|
-
const document = SSRRoot
|
|
2419
|
+
const document = jsxDEV(SSRRoot, {
|
|
2420
2420
|
children: createRouteElement(pathname, params, Page, Layouts, options?.routeError),
|
|
2421
2421
|
head: {
|
|
2422
2422
|
type: Fragment,
|
|
@@ -2478,13 +2478,13 @@ const renderRouteResponse = async (route, pathname, params, c, moduleUrl, status
|
|
|
2478
2478
|
isStatic: true,
|
|
2479
2479
|
props: {
|
|
2480
2480
|
type: "module",
|
|
2481
|
-
|
|
2481
|
+
src: "/entries/client_boot.js",
|
|
2482
|
+
},
|
|
2482
2483
|
},
|
|
2483
|
-
|
|
2484
|
-
|
|
2484
|
+
],
|
|
2485
|
+
},
|
|
2485
2486
|
},
|
|
2486
|
-
|
|
2487
|
-
});
|
|
2487
|
+
}, null, false, {});
|
|
2488
2488
|
|
|
2489
2489
|
applyRequestParams(c, params);
|
|
2490
2490
|
const { html, payload, chunks } = await renderSSRStream(() => document, {
|
|
@@ -3169,19 +3169,22 @@ const createConfig = (options) => async (userConfig) => {
|
|
|
3169
3169
|
preserveEntrySignatures: "allow-extension"
|
|
3170
3170
|
}
|
|
3171
3171
|
} },
|
|
3172
|
-
ssr: {
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3172
|
+
ssr: {
|
|
3173
|
+
resolve: { noExternal: [/^eclipsa(?:\/|$)/] },
|
|
3174
|
+
build: {
|
|
3175
|
+
emptyOutDir: true,
|
|
3176
|
+
outDir: path.join(root, "dist/ssr"),
|
|
3177
|
+
rollupOptions: {
|
|
3178
|
+
input: ssrInput,
|
|
3179
|
+
output: {
|
|
3180
|
+
assetFileNames: "assets/[name]-[hash][extname]",
|
|
3181
|
+
chunkFileNames: "chunks/[name]-[hash].mjs",
|
|
3182
|
+
entryFileNames: "entries/[name].mjs"
|
|
3183
|
+
},
|
|
3184
|
+
preserveEntrySignatures: "allow-extension"
|
|
3185
|
+
}
|
|
3183
3186
|
}
|
|
3184
|
-
}
|
|
3187
|
+
}
|
|
3185
3188
|
},
|
|
3186
3189
|
builder: { async buildApp(builder) {
|
|
3187
3190
|
await build(builder, userConfig, options);
|