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
564ac6c2f2
commit
25c1e597f1
3 changed files with 5 additions and 5 deletions
|
@ -4,8 +4,8 @@ import type { AllPagesData } from './types.js';
|
||||||
|
|
||||||
import * as colors from 'kleur/colors';
|
import * as colors from 'kleur/colors';
|
||||||
import { debug } from '../logger/core.js';
|
import { debug } from '../logger/core.js';
|
||||||
import { makePageDataKey } from './plugins/util.js';
|
|
||||||
import { DEFAULT_COMPONENTS } from '../routing/default.js';
|
import { DEFAULT_COMPONENTS } from '../routing/default.js';
|
||||||
|
import { makePageDataKey } from './plugins/util.js';
|
||||||
|
|
||||||
export interface CollectPagesDataOptions {
|
export interface CollectPagesDataOptions {
|
||||||
settings: AstroSettings;
|
settings: AstroSettings;
|
||||||
|
|
|
@ -14,6 +14,7 @@ import type {
|
||||||
} from '../../app/types.js';
|
} from '../../app/types.js';
|
||||||
import { encodeKey } from '../../encryption.js';
|
import { encodeKey } from '../../encryption.js';
|
||||||
import { fileExtension, joinPaths, prependForwardSlash } from '../../path.js';
|
import { fileExtension, joinPaths, prependForwardSlash } from '../../path.js';
|
||||||
|
import { DEFAULT_COMPONENTS } from '../../routing/default.js';
|
||||||
import { serializeRouteData } from '../../routing/index.js';
|
import { serializeRouteData } from '../../routing/index.js';
|
||||||
import { addRollupInput } from '../add-rollup-input.js';
|
import { addRollupInput } from '../add-rollup-input.js';
|
||||||
import { getOutFile, getOutFolder } from '../common.js';
|
import { getOutFile, getOutFolder } from '../common.js';
|
||||||
|
@ -21,7 +22,6 @@ import { type BuildInternals, cssOrder, mergeInlineCss } from '../internal.js';
|
||||||
import type { AstroBuildPlugin } from '../plugin.js';
|
import type { AstroBuildPlugin } from '../plugin.js';
|
||||||
import type { StaticBuildOptions } from '../types.js';
|
import type { StaticBuildOptions } from '../types.js';
|
||||||
import { makePageDataKey } from './util.js';
|
import { makePageDataKey } from './util.js';
|
||||||
import { DEFAULT_COMPONENTS } from '../../routing/default.js';
|
|
||||||
|
|
||||||
const manifestReplace = '@@ASTRO_MANIFEST_REPLACE@@';
|
const manifestReplace = '@@ASTRO_MANIFEST_REPLACE@@';
|
||||||
const replaceExp = new RegExp(`['"]${manifestReplace}['"]`, 'g');
|
const replaceExp = new RegExp(`['"]${manifestReplace}['"]`, 'g');
|
||||||
|
|
|
@ -7,6 +7,7 @@ import path from 'node:path';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
import { bold } from 'kleur/colors';
|
import { bold } from 'kleur/colors';
|
||||||
import pLimit from 'p-limit';
|
import pLimit from 'p-limit';
|
||||||
|
import { injectImageEndpoint } from '../../../assets/endpoint/config.js';
|
||||||
import { toRoutingStrategy } from '../../../i18n/utils.js';
|
import { toRoutingStrategy } from '../../../i18n/utils.js';
|
||||||
import { runHookRoutesResolved } from '../../../integrations/hooks.js';
|
import { runHookRoutesResolved } from '../../../integrations/hooks.js';
|
||||||
import { getPrerenderDefault } from '../../../prerender/utils.js';
|
import { getPrerenderDefault } from '../../../prerender/utils.js';
|
||||||
|
@ -16,14 +17,13 @@ import { SUPPORTED_MARKDOWN_FILE_EXTENSIONS } from '../../constants.js';
|
||||||
import { MissingIndexForInternationalization } from '../../errors/errors-data.js';
|
import { MissingIndexForInternationalization } from '../../errors/errors-data.js';
|
||||||
import { AstroError } from '../../errors/index.js';
|
import { AstroError } from '../../errors/index.js';
|
||||||
import { removeLeadingForwardSlash, slash } from '../../path.js';
|
import { removeLeadingForwardSlash, slash } from '../../path.js';
|
||||||
|
import { injectServerIslandRoute } from '../../server-islands/endpoint.js';
|
||||||
import { resolvePages } from '../../util.js';
|
import { resolvePages } from '../../util.js';
|
||||||
|
import { ensure404Route } from '../astro-designed-error-pages.js';
|
||||||
import { routeComparator } from '../priority.js';
|
import { routeComparator } from '../priority.js';
|
||||||
import { getRouteGenerator } from './generator.js';
|
import { getRouteGenerator } from './generator.js';
|
||||||
import { getPattern } from './pattern.js';
|
import { getPattern } from './pattern.js';
|
||||||
import { getRoutePrerenderOption } from './prerender.js';
|
import { getRoutePrerenderOption } from './prerender.js';
|
||||||
import { ensure404Route } from '../astro-designed-error-pages.js';
|
|
||||||
import { injectImageEndpoint } from '../../../assets/endpoint/config.js';
|
|
||||||
import { injectServerIslandRoute } from '../../server-islands/endpoint.js';
|
|
||||||
const require = createRequire(import.meta.url);
|
const require = createRequire(import.meta.url);
|
||||||
|
|
||||||
interface Item {
|
interface Item {
|
||||||
|
|
Loading…
Reference in a new issue