vike 0.4.259-commit-4273d7f → 0.4.259-commit-7646d97
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.
|
@@ -11,11 +11,7 @@ declare function handleAssetsManifest_isFixEnabled(): boolean;
|
|
|
11
11
|
declare function handleAssetsManifest_assertUsageCssCodeSplit(config: ResolvedConfig): void;
|
|
12
12
|
declare function handleAssetsManifest_alignCssTarget(config: ResolvedConfig): void;
|
|
13
13
|
declare function handleAssetsManifest_assertUsageCssTarget(config: ResolvedConfig, env: Environment): void;
|
|
14
|
-
declare function handleAssetsManifest_getBuildConfig(config: UserConfig): Promise<
|
|
15
|
-
readonly ssrEmitAssets: true | undefined;
|
|
16
|
-
readonly cssMinify: true | "esbuild" | undefined;
|
|
17
|
-
readonly manifest: true;
|
|
18
|
-
}>;
|
|
14
|
+
declare function handleAssetsManifest_getBuildConfig(config: UserConfig): Promise<import("vite").BuildEnvironmentOptions>;
|
|
19
15
|
declare function handleAssetsManifest(config: ResolvedConfig, viteEnv: Environment, options: {
|
|
20
16
|
dir: string | undefined;
|
|
21
17
|
}, bundle: Bundle): Promise<void>;
|
|
@@ -300,16 +300,22 @@ async function writeManifestFile(manifest, manifestFilePath) {
|
|
|
300
300
|
}
|
|
301
301
|
async function handleAssetsManifest_getBuildConfig(config) {
|
|
302
302
|
const isFixEnabled = handleAssetsManifest_isFixEnabled();
|
|
303
|
-
|
|
303
|
+
// Set default values (i.e. allow user to override these values)
|
|
304
|
+
const build = {};
|
|
305
|
+
if (isFixEnabled) {
|
|
304
306
|
// https://github.com/vikejs/vike/issues/1339
|
|
305
|
-
ssrEmitAssets
|
|
307
|
+
if (config.build?.ssrEmitAssets === undefined)
|
|
308
|
+
build.ssrEmitAssets = true;
|
|
306
309
|
// Required if `ssrEmitAssets: true`, see https://github.com/vitejs/vite/pull/11430#issuecomment-1454800934
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
310
|
+
if (config.build?.cssMinify === undefined)
|
|
311
|
+
build.cssMinify = isVite8OrAbove(config) ? true : 'esbuild';
|
|
312
|
+
}
|
|
313
|
+
if (config.build?.manifest === undefined)
|
|
314
|
+
build.manifest = true;
|
|
315
|
+
/* Already set by vike:build:pluginBuildApp
|
|
316
|
+
if (config.build?.copyPublicDir === undefined) build.copyPublicDir = !isViteServerSide_viteEnvOptional(config)
|
|
317
|
+
*/
|
|
318
|
+
return build;
|
|
313
319
|
}
|
|
314
320
|
async function handleAssetsManifest(config, viteEnv, options, bundle) {
|
|
315
321
|
const isSsrEnv = isViteServerSide_onlySsrEnv(config, viteEnv);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROJECT_VERSION: "0.4.259-commit-
|
|
1
|
+
export declare const PROJECT_VERSION: "0.4.259-commit-7646d97";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Automatically updated by @brillout/release-me
|
|
2
|
-
export const PROJECT_VERSION = '0.4.259-commit-
|
|
2
|
+
export const PROJECT_VERSION = '0.4.259-commit-7646d97';
|