[ci] format
This commit is contained in:
parent
c102c4a054
commit
7a26a52e19
12 changed files with 30 additions and 30 deletions
|
@ -1,8 +1,8 @@
|
|||
import type { MarkdownRenderingOptions } from '@astrojs/markdown-remark';
|
||||
import type { RuntimeMode, SSRLoadedRenderer, AstroSettings } from '../../@types/astro';
|
||||
import type { AstroSettings, RuntimeMode, SSRLoadedRenderer } from '../../@types/astro';
|
||||
import type { LogOptions } from '../logger/core.js';
|
||||
import type { RouteCache } from './route-cache.js';
|
||||
import type { ModuleLoader } from '../module-loader';
|
||||
import type { RouteCache } from './route-cache.js';
|
||||
|
||||
/**
|
||||
* An environment represents the static parts of rendering that do not change
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type { DevelopmentEnvironment } from './environment';
|
||||
import type { AstroMiddlewareInstance, ComponentInstance, RouteData } from '../../@types/astro';
|
||||
import type { DevelopmentEnvironment } from './environment';
|
||||
|
||||
export { createRenderContext } from './context.js';
|
||||
export type { RenderContext } from './context.js';
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import type { AstroSettings, ComponentInstance, RouteData } from '../@types/astro';
|
||||
import { RedirectComponentInstance, routeIsRedirect } from '../core/redirects/index.js';
|
||||
import type { DevelopmentEnvironment } from '../core/render';
|
||||
import { preload } from '../vite-plugin-astro-server/index.js';
|
||||
import { getPrerenderStatus } from './metadata.js';
|
||||
import type { DevelopmentEnvironment } from '../core/render';
|
||||
|
||||
type GetSortedPreloadedMatchesParams = {
|
||||
env: DevelopmentEnvironment;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type { ModuleLoader } from '../core/module-loader';
|
||||
import type { RuntimeMode } from '../@types/astro.js';
|
||||
import type { ModuleLoader } from '../core/module-loader';
|
||||
import { viteID } from '../core/util.js';
|
||||
import { isBuildableCSSRequest } from './util.js';
|
||||
import { crawlGraph } from './vite.js';
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { createResolve } from './resolve.js';
|
||||
import type { ModuleLoader } from '../core/module-loader';
|
||||
import type { AstroSettings, RuntimeMode, SSRManifest } from '../@types/astro.js';
|
||||
import type { LogOptions } from '../core/logger/core.js';
|
||||
import { RouteCache } from '../core/render/route-cache.js';
|
||||
import { isServerLikeOutput } from '../prerender/utils.js';
|
||||
import type { ModuleLoader } from '../core/module-loader';
|
||||
import type { DevelopmentEnvironment } from '../core/render';
|
||||
import { createEnvironment } from '../core/render/index.js';
|
||||
import { RouteCache } from '../core/render/route-cache.js';
|
||||
import { isServerLikeOutput } from '../prerender/utils.js';
|
||||
import { createResolve } from './resolve.js';
|
||||
|
||||
export function createDevelopmentEnvironment(
|
||||
manifest: SSRManifest,
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import type { ComponentInstance } from '../@types/astro.js';
|
||||
import { enhanceViteSSRError } from '../core/errors/dev/index.js';
|
||||
import { AggregateError, CSSError, MarkdownError } from '../core/errors/index.js';
|
||||
import type { DevelopmentEnvironment } from '../core/render/environment';
|
||||
import { loadRenderers } from '../core/render/index.js';
|
||||
import { viteID } from '../core/util.js';
|
||||
import { AggregateError, CSSError, MarkdownError } from '../core/errors/index.js';
|
||||
import { enhanceViteSSRError } from '../core/errors/dev/index.js';
|
||||
import type { DevelopmentEnvironment } from '../core/render/environment';
|
||||
|
||||
export async function preload({
|
||||
env,
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { crawlGraph } from './vite.js';
|
||||
import type { ModuleLoader, ModuleInfo } from '../core/module-loader';
|
||||
import type { SSRComponentMetadata, SSRResult } from '../@types/astro';
|
||||
import type { ModuleInfo, ModuleLoader } from '../core/module-loader';
|
||||
import { viteID } from '../core/util.js';
|
||||
import { getAstroMetadata } from '../vite-plugin-astro/index.js';
|
||||
import type { SSRComponentMetadata, SSRResult } from '../@types/astro';
|
||||
import { crawlGraph } from './vite.js';
|
||||
|
||||
export async function getComponentMetadata(
|
||||
filePath: URL,
|
||||
|
|
|
@ -4,10 +4,10 @@ import type { AstroSettings, ManifestData, SSRManifest } from '../@types/astro';
|
|||
import { patchOverlay } from '../core/errors/overlay.js';
|
||||
import type { LogOptions } from '../core/logger/core.js';
|
||||
import { createViteLoader } from '../core/module-loader/index.js';
|
||||
import { createDevelopmentEnvironment } from './environment.js';
|
||||
import { createRouteManifest } from '../core/routing/index.js';
|
||||
import { baseMiddleware } from './base.js';
|
||||
import { createController } from './controller.js';
|
||||
import { createDevelopmentEnvironment } from './environment.js';
|
||||
import { handleRequest } from './request.js';
|
||||
|
||||
export interface AstroPluginOptions {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import type http from 'node:http';
|
||||
import type { ManifestData, SSRManifest } from '../@types/astro';
|
||||
import type { DevServerController } from './controller';
|
||||
import type { DevelopmentEnvironment } from '../core/render/index';
|
||||
import type { DevServerController } from './controller';
|
||||
|
||||
import { collectErrorMetadata } from '../core/errors/dev/index.js';
|
||||
import { createSafeError } from '../core/errors/index.js';
|
||||
|
|
|
@ -12,16 +12,12 @@ import { attachToResponse } from '../core/cookies/index.js';
|
|||
import { AstroErrorData, isAstroError } from '../core/errors/index.js';
|
||||
import { warn } from '../core/logger/core.js';
|
||||
import { loadMiddleware } from '../core/middleware/loadMiddleware.js';
|
||||
import { getStylesForURL } from './css.js';
|
||||
import { preload } from './index.js';
|
||||
import { getComponentMetadata } from './metadata.js';
|
||||
import { getScriptsForURL } from './scripts.js';
|
||||
import {
|
||||
createRenderContext,
|
||||
type DevelopmentEnvironment,
|
||||
type SSROptions,
|
||||
getParamsAndProps,
|
||||
tryRenderRoute,
|
||||
type DevelopmentEnvironment,
|
||||
type SSROptions,
|
||||
} from '../core/render/index.js';
|
||||
import { createRequest } from '../core/request.js';
|
||||
import { matchAllRoutes } from '../core/routing/index.js';
|
||||
|
@ -30,7 +26,11 @@ import { getSortedPreloadedMatches } from '../prerender/routing.js';
|
|||
import { isServerLikeOutput } from '../prerender/utils.js';
|
||||
import { PAGE_SCRIPT_ID } from '../vite-plugin-scripts/index.js';
|
||||
import { log404 } from './common.js';
|
||||
import { getStylesForURL } from './css.js';
|
||||
import { preload } from './index.js';
|
||||
import { getComponentMetadata } from './metadata.js';
|
||||
import { handle404Response, writeSSRResult, writeWebResponse } from './response.js';
|
||||
import { getScriptsForURL } from './scripts.js';
|
||||
|
||||
const clientLocalsSymbol = Symbol.for('astro.locals');
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import type { SSRElement } from '../@types/astro';
|
||||
import type { ModuleInfo, ModuleLoader } from '../core/module-loader';
|
||||
import { createModuleScriptElementWithSrc } from '../core/render/ssr-element.js';
|
||||
import { rootRelativePath, viteID } from '../core/util.js';
|
||||
import type { PluginMetadata as AstroPluginMetadata } from '../vite-plugin-astro/types';
|
||||
import { crawlGraph } from './vite.js';
|
||||
import type { ModuleLoader, ModuleInfo } from '../core/module-loader';
|
||||
import type { SSRElement } from '../@types/astro';
|
||||
import { rootRelativePath, viteID } from '../core/util.js';
|
||||
import { createModuleScriptElementWithSrc } from '../core/render/ssr-element.js';
|
||||
|
||||
export async function getScriptsForURL(
|
||||
filePath: URL,
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import type { ModuleLoader, ModuleNode } from '../core/module-loader/index';
|
||||
import npath from 'node:path';
|
||||
import { isCSSRequest } from './util.js';
|
||||
import { unwrapId } from '../core/util.js';
|
||||
import { SUPPORTED_MARKDOWN_FILE_EXTENSIONS } from '../core/constants.js';
|
||||
import type { ModuleLoader, ModuleNode } from '../core/module-loader/index';
|
||||
import { unwrapId } from '../core/util.js';
|
||||
import { isCSSRequest } from './util.js';
|
||||
|
||||
/**
|
||||
* List of file extensions signalling we can (and should) SSR ahead-of-time
|
||||
|
|
Loading…
Reference in a new issue