vike-lite 1.13.3 → 1.13.4
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#region src/server/store.d.ts
|
|
2
2
|
interface VikeState {
|
|
3
|
-
routes: typeof import('virtual:
|
|
4
|
-
errorRoute: typeof import('virtual:
|
|
5
|
-
config: typeof import('virtual:
|
|
6
|
-
manifest: typeof import('virtual:
|
|
3
|
+
routes: typeof import('virtual:routes')['routes'];
|
|
4
|
+
errorRoute: typeof import('virtual:routes')['errorRoute'] | null;
|
|
5
|
+
config: typeof import('virtual:routes')['config'] | null;
|
|
6
|
+
manifest: typeof import('virtual:client-manifest')['default'] | null;
|
|
7
7
|
}
|
|
8
8
|
declare const store: VikeState;
|
|
9
9
|
declare function setVikeState(newState: Partial<VikeState>): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/__internal/shared/matchRoute.d.ts
|
|
2
|
-
declare function matchRoute(urlPathname: string, routes: typeof import('virtual:
|
|
2
|
+
declare function matchRoute(urlPathname: string, routes: typeof import('virtual:routes').routes): {
|
|
3
3
|
route: any;
|
|
4
4
|
routeParams: Record<string, string>;
|
|
5
5
|
} | null;
|
|
@@ -40,7 +40,7 @@ function computeAssets(route, nonce) {
|
|
|
40
40
|
if (!isProd) return {
|
|
41
41
|
cssLinks: "",
|
|
42
42
|
jsPreloads: "",
|
|
43
|
-
entryClient: withBase("@id/virtual:
|
|
43
|
+
entryClient: withBase("@id/virtual:entry-client")
|
|
44
44
|
};
|
|
45
45
|
const cssFiles = /* @__PURE__ */ new Set();
|
|
46
46
|
const jsFiles = /* @__PURE__ */ new Map();
|
package/dist/server.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as renderPage } from "./server-
|
|
1
|
+
import { t as renderPage } from "./server-GrGbl23a.mjs";
|
|
2
2
|
export { renderPage };
|
package/dist/vite.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Plugin } from "vite";
|
|
2
2
|
//#region src/vite/index.d.ts
|
|
3
|
-
declare function
|
|
3
|
+
declare function vikeLite({ pagesDir, serverEntry, apiPrefix, prerender }?: {
|
|
4
4
|
/**
|
|
5
5
|
* The directory where your page components are located.
|
|
6
6
|
* This is where the plugin will look for your page files to generate routes.
|
|
@@ -27,4 +27,4 @@ declare function routerPlugin({ pagesDir, serverEntry, apiPrefix, prerender }?:
|
|
|
27
27
|
prerender?: boolean;
|
|
28
28
|
}): Plugin;
|
|
29
29
|
//#endregion
|
|
30
|
-
export {
|
|
30
|
+
export { vikeLite as default };
|
package/dist/vite.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as renderPage } from "./server-
|
|
1
|
+
import { t as renderPage } from "./server-GrGbl23a.mjs";
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { Readable } from "node:stream";
|
|
@@ -99,20 +99,20 @@ async function injectFOUCStyles(server, html) {
|
|
|
99
99
|
const SUPPORTED_RENDERERS = ["solid"];
|
|
100
100
|
//#endregion
|
|
101
101
|
//#region src/vite/index.ts
|
|
102
|
-
function
|
|
102
|
+
function vikeLite({ pagesDir = "pages", serverEntry = "server/index", apiPrefix = "/api", prerender = false } = {}) {
|
|
103
103
|
const isProd = process.env.NODE_ENV === "production";
|
|
104
104
|
let viteConfigRoot;
|
|
105
105
|
let outDir;
|
|
106
106
|
let hasAnyPrerender;
|
|
107
107
|
const VIRTUAL = {
|
|
108
|
-
routes: "virtual:
|
|
109
|
-
manifest: "virtual:
|
|
108
|
+
routes: "virtual:routes",
|
|
109
|
+
manifest: "virtual:client-manifest",
|
|
110
110
|
client: "virtual:vike-lite/client",
|
|
111
111
|
server: "virtual:vike-lite/server",
|
|
112
112
|
setup: "virtual:vike-lite/setup",
|
|
113
|
-
entryClient: "virtual:
|
|
114
|
-
entryServer: "virtual:
|
|
115
|
-
entryPrerender: "virtual:
|
|
113
|
+
entryClient: "virtual:entry-client",
|
|
114
|
+
entryServer: "virtual:entry-server",
|
|
115
|
+
entryPrerender: "virtual:entry-prerender"
|
|
116
116
|
};
|
|
117
117
|
const VIRTUAL_VALUES = new Set(Object.values(VIRTUAL));
|
|
118
118
|
const RESOLVED = Object.fromEntries(Object.entries(VIRTUAL).map(([k, v]) => [k, `\0${v}`]));
|
|
@@ -390,4 +390,4 @@ function routerPlugin({ pagesDir = "pages", serverEntry = "server/index", apiPre
|
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
392
|
//#endregion
|
|
393
|
-
export {
|
|
393
|
+
export { vikeLite as default };
|