vike 0.4.218-commit-da1f60b → 0.4.218-commit-d49d717
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/__internal/setup.js +3 -0
- package/dist/cjs/node/runtime/globalContext.js +4 -3
- package/dist/cjs/node/runtime/page-files/setup.js +3 -0
- package/dist/cjs/utils/PROJECT_VERSION.js +1 -1
- package/dist/esm/node/runtime/globalContext.js +4 -3
- package/dist/esm/node/runtime/page-files/setup.d.ts +1 -0
- package/dist/esm/node/runtime/page-files/setup.js +3 -0
- package/dist/esm/utils/PROJECT_VERSION.d.ts +1 -1
- package/dist/esm/utils/PROJECT_VERSION.js +1 -1
- package/dist/esm/utils/projectInfo.d.ts +1 -1
- package/package.json +12 -2
|
@@ -183,7 +183,7 @@ async function initGlobalContext(isProduction) {
|
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
185
|
else {
|
|
186
|
-
const buildEntry = await getBuildEntry(globalObject.outDirRoot);
|
|
186
|
+
const buildEntry = await getBuildEntry(globalObject.outDirRoot, isPrerendering);
|
|
187
187
|
const { assetsManifest, pluginManifest } = buildEntry;
|
|
188
188
|
(0, getPageFiles_js_1.setPageFiles)(buildEntry.pageFiles);
|
|
189
189
|
const { globalConfig, userFiles } = await getPageRuntimeInfo(isProduction);
|
|
@@ -268,11 +268,12 @@ function eagerlyLoadUserFiles() {
|
|
|
268
268
|
// We call it as early as possible here for better performance.
|
|
269
269
|
getPageFilesExports();
|
|
270
270
|
}
|
|
271
|
-
async function getBuildEntry(outDir) {
|
|
271
|
+
async function getBuildEntry(outDir, isPrerendering) {
|
|
272
272
|
debug('getBuildEntry()');
|
|
273
273
|
if (!globalObject.buildEntry) {
|
|
274
274
|
debug('importServerProductionEntry()');
|
|
275
|
-
|
|
275
|
+
// importServerProductionEntry() loads dist/server/entry.mjs which calls setGlobalContext_buildEntry()
|
|
276
|
+
await (0, runtime_1.importServerProductionEntry)({ outDir, doNotLoadServer: isPrerendering });
|
|
276
277
|
if (!globalObject.buildEntry) {
|
|
277
278
|
debug('globalObject.buildEntryPrevious');
|
|
278
279
|
// Needed, for example, when calling the API prerender() then preview() because both trigger a importServerProductionEntry() call but only the first only is applied because of the import() cache. (A proper implementation would be to clear the import() cache, but it probably isn't possible on platforms such as Cloudflare Workers.)
|
|
@@ -180,7 +180,7 @@ async function initGlobalContext(isProduction) {
|
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
182
|
else {
|
|
183
|
-
const buildEntry = await getBuildEntry(globalObject.outDirRoot);
|
|
183
|
+
const buildEntry = await getBuildEntry(globalObject.outDirRoot, isPrerendering);
|
|
184
184
|
const { assetsManifest, pluginManifest } = buildEntry;
|
|
185
185
|
setPageFiles(buildEntry.pageFiles);
|
|
186
186
|
const { globalConfig, userFiles } = await getPageRuntimeInfo(isProduction);
|
|
@@ -265,11 +265,12 @@ function eagerlyLoadUserFiles() {
|
|
|
265
265
|
// We call it as early as possible here for better performance.
|
|
266
266
|
getPageFilesExports();
|
|
267
267
|
}
|
|
268
|
-
async function getBuildEntry(outDir) {
|
|
268
|
+
async function getBuildEntry(outDir, isPrerendering) {
|
|
269
269
|
debug('getBuildEntry()');
|
|
270
270
|
if (!globalObject.buildEntry) {
|
|
271
271
|
debug('importServerProductionEntry()');
|
|
272
|
-
|
|
272
|
+
// importServerProductionEntry() loads dist/server/entry.mjs which calls setGlobalContext_buildEntry()
|
|
273
|
+
await importServerProductionEntry({ outDir, doNotLoadServer: isPrerendering });
|
|
273
274
|
if (!globalObject.buildEntry) {
|
|
274
275
|
debug('globalObject.buildEntryPrevious');
|
|
275
276
|
// Needed, for example, when calling the API prerender() then preview() because both trigger a importServerProductionEntry() call but only the first only is applied because of the import() cache. (A proper implementation would be to clear the import() cache, but it probably isn't possible on platforms such as Cloudflare Workers.)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROJECT_VERSION: "0.4.218-commit-
|
|
1
|
+
export declare const PROJECT_VERSION: "0.4.218-commit-d49d717";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Automatically updated by @brillout/release-me
|
|
2
|
-
export const PROJECT_VERSION = '0.4.218-commit-
|
|
2
|
+
export const PROJECT_VERSION = '0.4.218-commit-d49d717';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vike",
|
|
3
|
-
"version": "0.4.218-commit-
|
|
3
|
+
"version": "0.4.218-commit-d49d717",
|
|
4
4
|
"repository": "https://github.com/vikejs/vike",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./server": {
|
|
@@ -102,6 +102,12 @@
|
|
|
102
102
|
"types": "./dist/esm/__internal/index.d.ts",
|
|
103
103
|
"default": "./dist/esm/__internal/index.js"
|
|
104
104
|
},
|
|
105
|
+
"./__internal/setup": {
|
|
106
|
+
"require": "./dist/cjs/node/runtime/page-files/setup.js",
|
|
107
|
+
"node": "./dist/esm/node/runtime/page-files/setup.js",
|
|
108
|
+
"types": "./dist/esm/node/runtime/page-files/setup.d.ts",
|
|
109
|
+
"default": "./dist/esm/node/runtime/page-files/setup.js"
|
|
110
|
+
},
|
|
105
111
|
".": {
|
|
106
112
|
"worker": "./dist/esm/node/runtime/index-deprecated.js",
|
|
107
113
|
"edge-light": "./dist/esm/node/runtime/index-deprecated.js",
|
|
@@ -117,7 +123,7 @@
|
|
|
117
123
|
"@brillout/json-serializer": "^0.5.15",
|
|
118
124
|
"@brillout/picocolors": "^1.0.15",
|
|
119
125
|
"@brillout/require-shim": "^0.1.2",
|
|
120
|
-
"@brillout/vite-plugin-server-entry": "
|
|
126
|
+
"@brillout/vite-plugin-server-entry": "0.5.7-commit-123be7e",
|
|
121
127
|
"acorn": "^8.0.0",
|
|
122
128
|
"cac": "^6.0.0",
|
|
123
129
|
"es-module-lexer": "^1.0.0",
|
|
@@ -199,6 +205,9 @@
|
|
|
199
205
|
],
|
|
200
206
|
"__internal": [
|
|
201
207
|
"./dist/esm/__internal/index.d.ts"
|
|
208
|
+
],
|
|
209
|
+
"__internal/setup": [
|
|
210
|
+
"./dist/esm/node/runtime/page-files/setup.d.ts"
|
|
202
211
|
]
|
|
203
212
|
}
|
|
204
213
|
},
|
|
@@ -219,6 +228,7 @@
|
|
|
219
228
|
"./dist-cjs-fixup.mjs",
|
|
220
229
|
"./getPageContext.js",
|
|
221
230
|
"./__internal.js",
|
|
231
|
+
"./__internal/setup.js",
|
|
222
232
|
"./modifyUrl.js",
|
|
223
233
|
"./plugin.js",
|
|
224
234
|
"./prerender.js",
|