vike 0.4.259-commit-2fe6cc7 → 0.4.259-commit-146b243

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.
@@ -454,9 +454,12 @@ async function createGlobalContext(virtualFileExportsGlobalEntry) {
454
454
  debug('createGlobalContext() - done [sync]');
455
455
  // We define an early globalContext version synchronously, so that getGlobalContextSync() can be called early.
456
456
  // - Required by vike-vercel
457
- assert(globalObject.globalContext);
457
+ const globalContextIsSetEarly = !!globalObject.globalContext;
458
+ assertWarning(globalContextIsSetEarly, "globalContext isn't set early", { onlyOnce: false });
458
459
  const globalContext = await globalContextPromise;
459
460
  debug('createGlobalContext() - done [async]');
461
+ assert(globalContextIsSetEarly); // We deliberately assert after the `await` (otherwise it swallows promise rejections such as an assert() failing synchronously inside `async createGlobalContextShared()`).
462
+ assert(globalObject.globalContext);
460
463
  assertV1Design(
461
464
  // pageConfigs is PageConfigRuntime[] but assertV1Design() requires PageConfigBuildTime[]
462
465
  globalContext._pageConfigs.length > 0, globalContext._pageFilesAll);
@@ -1 +1 @@
1
- export declare const PROJECT_VERSION: "0.4.259-commit-2fe6cc7";
1
+ export declare const PROJECT_VERSION: "0.4.259-commit-146b243";
@@ -1,2 +1,2 @@
1
1
  // Automatically updated by @brillout/release-me
2
- export const PROJECT_VERSION = '0.4.259-commit-2fe6cc7';
2
+ export const PROJECT_VERSION = '0.4.259-commit-146b243';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.259-commit-2fe6cc7",
3
+ "version": "0.4.259-commit-146b243",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {