[ci] format
This commit is contained in:
parent
5b1e39ef6e
commit
1e3c9f515b
2 changed files with 6 additions and 3 deletions
|
@ -8,8 +8,8 @@ import type { ExportDefaultDeclaration, ExportNamedDeclaration, ImportDeclaratio
|
|||
import { PROPAGATED_ASSET_FLAG } from '../../../content/consts.js';
|
||||
import { prependForwardSlash } from '../../../core/path.js';
|
||||
import { getTopLevelPages, moduleIsTopLevelPage, walkParentInfos } from '../graph.js';
|
||||
import type { StaticBuildOptions } from '../types.js';
|
||||
import { getPageDataByViteID, trackClientOnlyPageDatas } from '../internal.js';
|
||||
import type { StaticBuildOptions } from '../types.js';
|
||||
|
||||
function isPropagatedAsset(id: string) {
|
||||
try {
|
||||
|
|
|
@ -46,7 +46,7 @@ const ASTRO_CONFIG_DEFAULTS = {
|
|||
experimental: {
|
||||
assets: false,
|
||||
viewTransitions: false,
|
||||
optimizeHoistedScript: false
|
||||
optimizeHoistedScript: false,
|
||||
},
|
||||
} satisfies AstroUserConfig & { server: { open: boolean } };
|
||||
|
||||
|
@ -238,7 +238,10 @@ export const AstroConfigSchema = z.object({
|
|||
.boolean()
|
||||
.optional()
|
||||
.default(ASTRO_CONFIG_DEFAULTS.experimental.viewTransitions),
|
||||
optimizeHoistedScript: z.boolean().optional().default(ASTRO_CONFIG_DEFAULTS.experimental.optimizeHoistedScript),
|
||||
optimizeHoistedScript: z
|
||||
.boolean()
|
||||
.optional()
|
||||
.default(ASTRO_CONFIG_DEFAULTS.experimental.optimizeHoistedScript),
|
||||
})
|
||||
.passthrough()
|
||||
.refine(
|
||||
|
|
Loading…
Reference in a new issue