vike 0.4.253-commit-7b3d12e → 0.4.253-commit-6255ff2
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/client/runtime-client-routing/getPageContextFromHooks.d.ts +4 -4
- package/dist/node/vite/shared/resolveVikeConfigInternal/transpileAndExecuteFile.js +7 -0
- package/dist/utils/PROJECT_VERSION.d.ts +1 -1
- package/dist/utils/PROJECT_VERSION.js +1 -1
- package/dist/utils/debug.d.ts +1 -1
- package/dist/utils/debug.js +1 -0
- package/package.json +1 -1
|
@@ -199,7 +199,7 @@ declare function getPageContextFromHooksClient_firstRender(pageContext: PageCont
|
|
|
199
199
|
sources: import("../../shared-server-client/page-configs/resolveVikeConfigPublic.js").Sources;
|
|
200
200
|
pageExports: Record<string, unknown>;
|
|
201
201
|
isBaseMissing?: true;
|
|
202
|
-
}, "
|
|
202
|
+
}, "config" | "pageId" | "exports" | "Page" | "data" | "source" | "sources" | "from" | "configEntries" | "exportsAll" | "pageExports" | "routeParams" | "abortReason"> & {
|
|
203
203
|
isClientSide: true;
|
|
204
204
|
isPrerendering: false;
|
|
205
205
|
cspNonce?: undefined;
|
|
@@ -262,7 +262,7 @@ declare function getPageContextFromHooksClient_firstRender(pageContext: PageCont
|
|
|
262
262
|
sources: import("../../shared-server-client/page-configs/resolveVikeConfigPublic.js").Sources;
|
|
263
263
|
pageExports: Record<string, unknown>;
|
|
264
264
|
isBaseMissing?: true;
|
|
265
|
-
}, "
|
|
265
|
+
}, "config" | "pageId" | "exports" | "Page" | "data" | "source" | "sources" | "from" | "configEntries" | "exportsAll" | "pageExports" | "routeParams" | "abortReason"> & {
|
|
266
266
|
isClientSide: true;
|
|
267
267
|
isPrerendering: false;
|
|
268
268
|
cspNonce?: undefined;
|
|
@@ -485,7 +485,7 @@ declare function getPageContextFromHooksClient(pageContext: {
|
|
|
485
485
|
sources: import("../../shared-server-client/page-configs/resolveVikeConfigPublic.js").Sources;
|
|
486
486
|
pageExports: Record<string, unknown>;
|
|
487
487
|
isBaseMissing?: true;
|
|
488
|
-
}, "
|
|
488
|
+
}, "config" | "pageId" | "exports" | "Page" | "data" | "source" | "sources" | "from" | "configEntries" | "exportsAll" | "pageExports" | "routeParams" | "abortReason"> & {
|
|
489
489
|
isClientSide: true;
|
|
490
490
|
isPrerendering: false;
|
|
491
491
|
cspNonce?: undefined;
|
|
@@ -546,7 +546,7 @@ declare function getPageContextFromHooksClient(pageContext: {
|
|
|
546
546
|
sources: import("../../shared-server-client/page-configs/resolveVikeConfigPublic.js").Sources;
|
|
547
547
|
pageExports: Record<string, unknown>;
|
|
548
548
|
isBaseMissing?: true;
|
|
549
|
-
}, "
|
|
549
|
+
}, "config" | "pageId" | "exports" | "Page" | "data" | "source" | "sources" | "from" | "configEntries" | "exportsAll" | "pageExports" | "routeParams" | "abortReason"> & {
|
|
550
550
|
isClientSide: true;
|
|
551
551
|
isPrerendering: false;
|
|
552
552
|
cspNonce?: undefined;
|
|
@@ -28,6 +28,7 @@ assertIsNotProductionRuntime();
|
|
|
28
28
|
installSourceMapSupport();
|
|
29
29
|
const debug = createDebug('vike:pointer-imports');
|
|
30
30
|
const debugEsbuildResolve = createDebug('vike:esbuild-resolve');
|
|
31
|
+
const debugConfig = createDebug('vike:config');
|
|
31
32
|
if (debugEsbuildResolve.isActivated)
|
|
32
33
|
debugEsbuildResolve('esbuild version', version);
|
|
33
34
|
async function transpileAndExecuteFile(filePath, userRootDir, isExtensionConfig, esbuildCache) {
|
|
@@ -52,11 +53,17 @@ async function transpileAndExecuteFile(filePath, userRootDir, isExtensionConfig,
|
|
|
52
53
|
let fileExports;
|
|
53
54
|
if (isExtensionConfig && !isHeader && fileExtension.endsWith('js')) {
|
|
54
55
|
// This doesn't track dependencies => we should never use this for user land configs
|
|
56
|
+
if (debugConfig.isActivated) {
|
|
57
|
+
debugConfig(filePathToShowToUserResolved, 'executed directly (no esbuild transpilation)');
|
|
58
|
+
}
|
|
55
59
|
fileExports = await executeFile(filePathAbsoluteFilesystem, filePath);
|
|
56
60
|
}
|
|
57
61
|
else {
|
|
58
62
|
const transformImports = isHeader ? 'all' : true;
|
|
59
63
|
const code = await transpileFile(filePath, transformImports, userRootDir, esbuildCache);
|
|
64
|
+
if (debugConfig.isActivated) {
|
|
65
|
+
debugConfig(filePathToShowToUserResolved, code);
|
|
66
|
+
}
|
|
60
67
|
fileExports = await executeTranspiledFile(filePath, code);
|
|
61
68
|
}
|
|
62
69
|
resolve({ fileExports });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROJECT_VERSION: "0.4.253-commit-
|
|
1
|
+
export declare const PROJECT_VERSION: "0.4.253-commit-6255ff2";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Automatically updated by @brillout/release-me
|
|
2
|
-
export const PROJECT_VERSION = '0.4.253-commit-
|
|
2
|
+
export const PROJECT_VERSION = '0.4.253-commit-6255ff2';
|
package/dist/utils/debug.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { createDebug };
|
|
|
2
2
|
export { isDebug };
|
|
3
3
|
export { isDebugError };
|
|
4
4
|
export { debug };
|
|
5
|
-
declare const flags: ["vike", "vike:crawl", "vike:file-change", "vike:error", "vike:esbuild-resolve", "vike:pluginExtractAssets", "vike:pluginExtractExportNames", "vike:glob", "vike:globalContext", "vike:log", "vike:optimizeDeps", "vike:outDir", "vike:pageFiles", "vike:pointer-imports", "vike:requireResolve", "vike:routing", "vike:setup", "vike:staticReplace", "vike:stream", "vike:virtualFiles", "vike:vite-rpc"];
|
|
5
|
+
declare const flags: ["vike", "vike:config", "vike:crawl", "vike:file-change", "vike:error", "vike:esbuild-resolve", "vike:pluginExtractAssets", "vike:pluginExtractExportNames", "vike:glob", "vike:globalContext", "vike:log", "vike:optimizeDeps", "vike:outDir", "vike:pageFiles", "vike:pointer-imports", "vike:requireResolve", "vike:routing", "vike:setup", "vike:staticReplace", "vike:stream", "vike:virtualFiles", "vike:vite-rpc"];
|
|
6
6
|
type Flag = (typeof flags)[number];
|
|
7
7
|
type Options = {
|
|
8
8
|
serialization?: {
|
package/dist/utils/debug.js
CHANGED