mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
0fd36bdb38
commit
9b08facb27
3 changed files with 8 additions and 3 deletions
|
@ -2,7 +2,12 @@ export { CONTENT_FLAG, PROPAGATED_ASSET_FLAG } from './consts.js';
|
|||
export { errorMap } from './error-map.js';
|
||||
export { attachContentServerListeners } from './server-listeners.js';
|
||||
export { createContentTypesGenerator } from './types-generator.js';
|
||||
export { contentObservable, getContentPaths, getDotAstroTypeReference, hasAssetPropagationFlag } from './utils.js';
|
||||
export {
|
||||
contentObservable,
|
||||
getContentPaths,
|
||||
getDotAstroTypeReference,
|
||||
hasAssetPropagationFlag,
|
||||
} from './utils.js';
|
||||
export { astroContentAssetPropagationPlugin } from './vite-plugin-content-assets.js';
|
||||
export { astroContentImportPlugin } from './vite-plugin-content-imports.js';
|
||||
export { astroContentVirtualModPlugin } from './vite-plugin-content-virtual-mod.js';
|
||||
|
|
|
@ -508,7 +508,7 @@ export function getExtGlob(exts: string[]) {
|
|||
|
||||
export function hasAssetPropagationFlag(id: string): boolean {
|
||||
try {
|
||||
return new URL(id, 'file://').searchParams.has(PROPAGATED_ASSET_FLAG)
|
||||
return new URL(id, 'file://').searchParams.has(PROPAGATED_ASSET_FLAG);
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ import type { AstroBuildPlugin, BuildTarget } from '../plugin.js';
|
|||
import type { PageBuildData, StaticBuildOptions, StylesheetAsset } from '../types.js';
|
||||
|
||||
import { RESOLVED_VIRTUAL_MODULE_ID as ASTRO_CONTENT_VIRTUAL_MODULE_ID } from '../../../content/consts.js';
|
||||
import { hasAssetPropagationFlag } from '../../../content/index.js';
|
||||
import type { AstroPluginCssMetadata } from '../../../vite-plugin-astro/index.js';
|
||||
import * as assetName from '../css-asset-name.js';
|
||||
import {
|
||||
|
@ -21,7 +22,6 @@ import {
|
|||
isHoistedScript,
|
||||
} from '../internal.js';
|
||||
import { extendManualChunks, shouldInlineAsset } from './util.js';
|
||||
import { hasAssetPropagationFlag } from '../../../content/index.js';
|
||||
|
||||
interface PluginOptions {
|
||||
internals: BuildInternals;
|
||||
|
|
Loading…
Reference in a new issue