vike 0.4.253-commit-be7ae59 → 0.4.253-commit-7f3dbfd

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.
@@ -320,13 +320,13 @@ async function handleAssetsManifest(config, viteEnv, options, bundle) {
320
320
  if (isViteServerSide(config, viteEnv)) {
321
321
  const outDir = options.dir;
322
322
  assert(outDir);
323
- // Replace __VITE_ASSETS_MANIFEST__ in server builds
323
+ // Replace ASSETS_MANIFEST in server builds
324
324
  // - Always replace it in dist/server/
325
325
  // - Also in some other server builds such as dist/vercel/ from vike-vercel
326
- // - Don't replace it in dist/rsc/ from vike-react-rsc since __VITE_ASSETS_MANIFEST__ doesn't exist there
326
+ // - Don't replace it in dist/rsc/ from vike-react-rsc since ASSETS_MANIFEST doesn't exist there
327
327
  const noop = await set_macro_ASSETS_MANIFEST(globalObject.assetsJsonFilePath, bundle, outDir);
328
328
  if (isSsrEnv)
329
- assert(!noop); // dist/server should always contain __VITE_ASSETS_MANIFEST__
329
+ assert(!noop); // dist/server should always contain ASSETS_MANIFEST
330
330
  }
331
331
  }
332
332
  async function writeAssetsManifestFile(assetsJsonFilePath, config) {
@@ -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 = `__VITE_ASSETS_MANIFEST_${preventConstantFolding()}_'`;
15
+ const ASSETS_MANIFEST = `__VITE_ASSETS_MANIFEST_${preventConstantFolding()}_`;
16
16
  function pluginProdBuildEntry() {
17
17
  let config;
18
18
  return [
@@ -65,7 +65,7 @@ function getServerProductionEntryCode(config) {
65
65
  async function set_macro_ASSETS_MANIFEST(assetsJsonFilePath, bundle, outDir) {
66
66
  assert(outDir);
67
67
  const chunkPath = find_ASSETS_MANIFEST(bundle);
68
- // Some server builds don't contain __VITE_ASSETS_MANIFEST__ such as dist/rsc/ from vike-react-rsc
68
+ // Some server builds don't contain ASSETS_MANIFEST such as dist/rsc/ from vike-react-rsc
69
69
  if (!chunkPath) {
70
70
  const noop = true; // no operation
71
71
  return noop;
@@ -110,7 +110,7 @@ function getImportPath(config) {
110
110
  /** Prevent compilers from constant folding `'a' + 'b'` into `'ab'`*/
111
111
  function preventConstantFolding() {
112
112
  // @ts-ignore
113
- const undefined_ = !globalThis.__vike_always_undefined;
113
+ const undefined_ = globalThis.__vike_this_property_is_never_defined;
114
114
  if (undefined_)
115
115
  return 'this_value_is_never_used';
116
116
  return '';
@@ -1 +1 @@
1
- export declare const PROJECT_VERSION: "0.4.253-commit-be7ae59";
1
+ export declare const PROJECT_VERSION: "0.4.253-commit-7f3dbfd";
@@ -1,2 +1,2 @@
1
1
  // Automatically updated by @brillout/release-me
2
- export const PROJECT_VERSION = '0.4.253-commit-be7ae59';
2
+ export const PROJECT_VERSION = '0.4.253-commit-7f3dbfd';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.253-commit-be7ae59",
3
+ "version": "0.4.253-commit-7f3dbfd",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {