vike 0.4.253-commit-6539e7f → 0.4.253-commit-be7ae59
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.
|
@@ -12,7 +12,7 @@ import { assertBuildInfo } from '../../../../server/runtime/globalContext.js';
|
|
|
12
12
|
import { getOutDirs } from '../../shared/getOutDirs.js';
|
|
13
13
|
import { getViteConfigRuntime } from '../../shared/getViteConfigRuntime.js';
|
|
14
14
|
import '../../assertEnvVite.js';
|
|
15
|
-
const ASSETS_MANIFEST = '
|
|
15
|
+
const ASSETS_MANIFEST = `__VITE_ASSETS_MANIFEST_${preventConstantFolding()}_'`;
|
|
16
16
|
function pluginProdBuildEntry() {
|
|
17
17
|
let config;
|
|
18
18
|
return [
|
|
@@ -107,3 +107,11 @@ function getImportPath(config) {
|
|
|
107
107
|
return filePathRelative;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
+
/** Prevent compilers from constant folding `'a' + 'b'` into `'ab'`*/
|
|
111
|
+
function preventConstantFolding() {
|
|
112
|
+
// @ts-ignore
|
|
113
|
+
const undefined_ = !globalThis.__vike_always_undefined;
|
|
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-be7ae59";
|
|
@@ -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-be7ae59';
|