vike 0.4.253-commit-7f3dbfd → 0.4.253-commit-d6e725f
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.
|
@@ -5,6 +5,7 @@ import { virtualFileIdGlobalEntryServer } from '../../../../shared-server-node/v
|
|
|
5
5
|
import { PROJECT_VERSION } from '../../../../utils/PROJECT_VERSION.js';
|
|
6
6
|
import { assert } from '../../../../utils/assert.js';
|
|
7
7
|
import { requireResolveDistFile } from '../../../../utils/requireResolve.js';
|
|
8
|
+
import { preventConstantFolding } from '../../../../utils/preventConstantFolding.js';
|
|
8
9
|
import fs from 'node:fs/promises';
|
|
9
10
|
import path from 'node:path';
|
|
10
11
|
import { isUsingClientRouter } from '../pluginExtractExportNames.js';
|
|
@@ -12,7 +13,10 @@ import { assertBuildInfo } from '../../../../server/runtime/globalContext.js';
|
|
|
12
13
|
import { getOutDirs } from '../../shared/getOutDirs.js';
|
|
13
14
|
import { getViteConfigRuntime } from '../../shared/getViteConfigRuntime.js';
|
|
14
15
|
import '../../assertEnvVite.js';
|
|
15
|
-
const ASSETS_MANIFEST = `__VITE_ASSETS_MANIFEST_${
|
|
16
|
+
const ASSETS_MANIFEST = `__VITE_ASSETS_MANIFEST_${
|
|
17
|
+
// Prevent ASSETS_MANIFEST to be found in `node_modules/vike/` when server runtime imports Vike's Vite plugin via `import { prerender } from 'vike/api'` with ssr.noExternal.includes('vike')
|
|
18
|
+
// https://github.com/vikejs/vike/issues/3113
|
|
19
|
+
preventConstantFolding()}_`;
|
|
16
20
|
function pluginProdBuildEntry() {
|
|
17
21
|
let config;
|
|
18
22
|
return [
|
|
@@ -107,11 +111,3 @@ function getImportPath(config) {
|
|
|
107
111
|
return filePathRelative;
|
|
108
112
|
}
|
|
109
113
|
}
|
|
110
|
-
/** Prevent compilers from constant folding `'a' + 'b'` into `'ab'`*/
|
|
111
|
-
function preventConstantFolding() {
|
|
112
|
-
// @ts-ignore
|
|
113
|
-
const undefined_ = globalThis.__vike_this_property_is_never_defined;
|
|
114
|
-
if (undefined_)
|
|
115
|
-
return 'this_value_is_never_used';
|
|
116
|
-
return '';
|
|
117
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROJECT_VERSION: "0.4.253-commit-
|
|
1
|
+
export declare const PROJECT_VERSION: "0.4.253-commit-d6e725f";
|
|
@@ -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-d6e725f';
|