vike 0.4.223-commit-6adb186 → 0.4.223-commit-59f3966

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.
@@ -20,7 +20,7 @@ async function build(options = {}) {
20
20
  // Pass it to pluginAutoFullBuild()
21
21
  if (viteConfigEnhanced)
22
22
  viteConfigEnhanced._viteConfigEnhanced = viteConfigEnhanced;
23
- if (vikeConfig.global.config.viteEnvironmentAPI) {
23
+ if (vikeConfig.global.config.vite6BuilderApp) {
24
24
  (0, utils_js_1.assertVersion)('Vite', vite_1.version, '6.0.0');
25
25
  const builder = await (0, vite_1.createBuilder)(viteConfigEnhanced);
26
26
  // See Vite plugin vike:build:pluginBuildApp
@@ -294,7 +294,7 @@ function handleAssetsManifest_getBuildConfig(config) {
294
294
  // Required if `ssrEmitAssets: true`, see https://github.com/vitejs/vite/pull/11430#issuecomment-1454800934
295
295
  cssMinify: isFixEnabled ? 'esbuild' : undefined,
296
296
  manifest: pluginBuildConfig_js_1.manifestTempFile,
297
- copyPublicDir: vike.config.viteEnvironmentAPI
297
+ copyPublicDir: vike.config.vite6BuilderApp
298
298
  ? // Already set by vike:build:pluginBuildApp
299
299
  undefined
300
300
  : !(0, isViteServerBuild_js_1.isViteServerBuild)(config)
@@ -55,7 +55,7 @@ function pluginAutoFullBuild() {
55
55
  (0, handleAssetsManifest_js_1.handleAssetsManifest_assertUsageCssTarget)(config);
56
56
  if (forceExit &&
57
57
  // Let vike:build:pluginBuildApp force exit
58
- !vikeConfig.global.config.viteEnvironmentAPI) {
58
+ !vikeConfig.global.config.vite6BuilderApp) {
59
59
  (0, runPrerender_js_1.runPrerender_forceExit)();
60
60
  (0, utils_js_1.assert)(false);
61
61
  }
@@ -66,7 +66,7 @@ function pluginAutoFullBuild() {
66
66
  }
67
67
  async function triggerFullBuild(config, vikeConfig, viteEnv, bundle) {
68
68
  // Whether builder.buildApp() is being used, see plugin:build:pluginBuildApp
69
- const isBuilderApp = vikeConfig.global.config.viteEnvironmentAPI;
69
+ const isBuilderApp = vikeConfig.global.config.vite6BuilderApp;
70
70
  // If builder.buildApp() => trigger at end of `this.environment.name === 'ssr'`.
71
71
  // Else => trigger at end of client-side build.
72
72
  if (isBuilderApp ? !(0, isViteServerBuild_js_1.isViteServerBuild_onlySsrEnv)(config, viteEnv) : !(0, isViteServerBuild_js_1.isViteClientBuild)(config, viteEnv))
@@ -13,7 +13,7 @@ function pluginBuildApp() {
13
13
  apply: 'build',
14
14
  config(config) {
15
15
  const vike = (0, commonConfig_js_1.getVikeConfigPublic)(config);
16
- if (!vike.config.viteEnvironmentAPI)
16
+ if (!vike.config.vite6BuilderApp)
17
17
  return;
18
18
  return {
19
19
  builder: {
@@ -164,7 +164,7 @@ const configDefinitionsBuiltIn = {
164
164
  'string'
165
165
  ]
166
166
  },
167
- viteEnvironmentAPI: {
167
+ vite6BuilderApp: {
168
168
  env: { config: true },
169
169
  global: true,
170
170
  type: 'boolean'
@@ -816,7 +816,8 @@ prerenderConfig) {
816
816
  }
817
817
  function makePublic(prerenderContext) {
818
818
  const prerenderContextPublic = (0, utils_js_1.makePublicCopy)(prerenderContext, 'prerenderContext', [
819
- 'pageContexts'
819
+ 'pageContexts',
820
+ 'output'
820
821
  ]);
821
822
  return prerenderContextPublic;
822
823
  }
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PROJECT_VERSION = void 0;
4
4
  // Automatically updated by @brillout/release-me
5
- exports.PROJECT_VERSION = '0.4.223-commit-6adb186';
5
+ exports.PROJECT_VERSION = '0.4.223-commit-59f3966';
@@ -15,7 +15,7 @@ async function build(options = {}) {
15
15
  // Pass it to pluginAutoFullBuild()
16
16
  if (viteConfigEnhanced)
17
17
  viteConfigEnhanced._viteConfigEnhanced = viteConfigEnhanced;
18
- if (vikeConfig.global.config.viteEnvironmentAPI) {
18
+ if (vikeConfig.global.config.vite6BuilderApp) {
19
19
  assertVersion('Vite', version, '6.0.0');
20
20
  const builder = await createBuilder(viteConfigEnhanced);
21
21
  // See Vite plugin vike:build:pluginBuildApp
@@ -289,7 +289,7 @@ function handleAssetsManifest_getBuildConfig(config) {
289
289
  // Required if `ssrEmitAssets: true`, see https://github.com/vitejs/vite/pull/11430#issuecomment-1454800934
290
290
  cssMinify: isFixEnabled ? 'esbuild' : undefined,
291
291
  manifest: manifestTempFile,
292
- copyPublicDir: vike.config.viteEnvironmentAPI
292
+ copyPublicDir: vike.config.vite6BuilderApp
293
293
  ? // Already set by vike:build:pluginBuildApp
294
294
  undefined
295
295
  : !isViteServerBuild(config)
@@ -50,7 +50,7 @@ function pluginAutoFullBuild() {
50
50
  handleAssetsManifest_assertUsageCssTarget(config);
51
51
  if (forceExit &&
52
52
  // Let vike:build:pluginBuildApp force exit
53
- !vikeConfig.global.config.viteEnvironmentAPI) {
53
+ !vikeConfig.global.config.vite6BuilderApp) {
54
54
  runPrerender_forceExit();
55
55
  assert(false);
56
56
  }
@@ -61,7 +61,7 @@ function pluginAutoFullBuild() {
61
61
  }
62
62
  async function triggerFullBuild(config, vikeConfig, viteEnv, bundle) {
63
63
  // Whether builder.buildApp() is being used, see plugin:build:pluginBuildApp
64
- const isBuilderApp = vikeConfig.global.config.viteEnvironmentAPI;
64
+ const isBuilderApp = vikeConfig.global.config.vite6BuilderApp;
65
65
  // If builder.buildApp() => trigger at end of `this.environment.name === 'ssr'`.
66
66
  // Else => trigger at end of client-side build.
67
67
  if (isBuilderApp ? !isViteServerBuild_onlySsrEnv(config, viteEnv) : !isViteClientBuild(config, viteEnv))
@@ -11,7 +11,7 @@ function pluginBuildApp() {
11
11
  apply: 'build',
12
12
  config(config) {
13
13
  const vike = getVikeConfigPublic(config);
14
- if (!vike.config.viteEnvironmentAPI)
14
+ if (!vike.config.vite6BuilderApp)
15
15
  return;
16
16
  return {
17
17
  builder: {
@@ -162,7 +162,7 @@ const configDefinitionsBuiltIn = {
162
162
  'string'
163
163
  ]
164
164
  },
165
- viteEnvironmentAPI: {
165
+ vite6BuilderApp: {
166
166
  env: { config: true },
167
167
  global: true,
168
168
  type: 'boolean'
@@ -778,7 +778,8 @@ prerenderConfig) {
778
778
  }
779
779
  function makePublic(prerenderContext) {
780
780
  const prerenderContextPublic = makePublicCopy(prerenderContext, 'prerenderContext', [
781
- 'pageContexts'
781
+ 'pageContexts',
782
+ 'output'
782
783
  ]);
783
784
  return prerenderContextPublic;
784
785
  }
@@ -422,10 +422,12 @@ type ConfigBuiltIn = {
422
422
  includeAssetsImportedByServer?: boolean;
423
423
  /** @deprecated See https://vike.dev/disableAutoFullBuild */
424
424
  disableAutoFullBuild?: boolean | 'prerender';
425
- /** Use Vite Environment API to orchestrate the build process.
425
+ /**
426
+ * Use builder.buildApp() to orchestrate the build process.
427
+ *
426
428
  * @experimental
427
429
  */
428
- viteEnvironmentAPI?: boolean;
430
+ vite6BuilderApp?: boolean;
429
431
  /** The Base URL of your server.
430
432
  *
431
433
  * https://vike.dev/base-url
@@ -1 +1 @@
1
- export declare const PROJECT_VERSION: "0.4.223-commit-6adb186";
1
+ export declare const PROJECT_VERSION: "0.4.223-commit-59f3966";
@@ -1,2 +1,2 @@
1
1
  // Automatically updated by @brillout/release-me
2
- export const PROJECT_VERSION = '0.4.223-commit-6adb186';
2
+ export const PROJECT_VERSION = '0.4.223-commit-59f3966';
@@ -1,4 +1,4 @@
1
1
  export declare const projectInfo: {
2
2
  projectName: "Vike";
3
- projectVersion: "0.4.223-commit-6adb186";
3
+ projectVersion: "0.4.223-commit-59f3966";
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.223-commit-6adb186",
3
+ "version": "0.4.223-commit-59f3966",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {