vite-plugin-kiru 0.29.9 → 0.29.10
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/dist/index.js +5 -8
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8810,11 +8810,10 @@ function createLogger(state) {
|
|
|
8810
8810
|
}
|
|
8811
8811
|
function resolveUserDocument(projectRoot, ssgOptions) {
|
|
8812
8812
|
const { dir, document } = ssgOptions;
|
|
8813
|
-
const
|
|
8814
|
-
|
|
8815
|
-
});
|
|
8813
|
+
const fp = path2.resolve(projectRoot, dir, document).replace(/\\/g, "/");
|
|
8814
|
+
const matches = globSync(fp);
|
|
8816
8815
|
if (!matches.length) {
|
|
8817
|
-
throw new Error(`Document not found`);
|
|
8816
|
+
throw new Error(`Document not found at ${fp}`);
|
|
8818
8817
|
}
|
|
8819
8818
|
return path2.resolve(projectRoot, matches[0]).replace(/\\/g, "/");
|
|
8820
8819
|
}
|
|
@@ -11254,8 +11253,7 @@ async function generateStaticSite(state, outputOptions, bundle, log) {
|
|
|
11254
11253
|
route,
|
|
11255
11254
|
srcFilePath,
|
|
11256
11255
|
clientEntry,
|
|
11257
|
-
manifest
|
|
11258
|
-
log
|
|
11256
|
+
manifest
|
|
11259
11257
|
);
|
|
11260
11258
|
const filePath = getOutputPath(clientOutDirAbs, route);
|
|
11261
11259
|
log(ANSI.cyan("[SSG]"), "write:", ANSI.black(filePath));
|
|
@@ -11350,7 +11348,7 @@ function findClientEntry(dir) {
|
|
|
11350
11348
|
}
|
|
11351
11349
|
return null;
|
|
11352
11350
|
}
|
|
11353
|
-
async function renderRoute(state, mod, route, srcFilePath, clientEntry, manifest
|
|
11351
|
+
async function renderRoute(state, mod, route, srcFilePath, clientEntry, manifest) {
|
|
11354
11352
|
const moduleIds = [];
|
|
11355
11353
|
const { projectRoot, ssgOptions } = state;
|
|
11356
11354
|
const documentPath = path6.resolve(
|
|
@@ -11371,7 +11369,6 @@ async function renderRoute(state, mod, route, srcFilePath, clientEntry, manifest
|
|
|
11371
11369
|
};
|
|
11372
11370
|
const result = await mod.render(route, ctx);
|
|
11373
11371
|
let html = result.body;
|
|
11374
|
-
log(ANSI.cyan("[SSG]"), ` Total modules tracked: ${moduleIds.length}`);
|
|
11375
11372
|
let cssLinks = "";
|
|
11376
11373
|
if (manifest) {
|
|
11377
11374
|
cssLinks = collectCssForModules(manifest, moduleIds, projectRoot);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-kiru",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"rollup": "^4.46.2",
|
|
18
18
|
"tsx": "^4.20.3",
|
|
19
19
|
"typescript": "^5.9.2",
|
|
20
|
-
"kiru-devtools-
|
|
21
|
-
"kiru-devtools-
|
|
20
|
+
"kiru-devtools-client": "^0.0.0",
|
|
21
|
+
"kiru-devtools-host": "^1.0.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"glob": "^11.0.3",
|