From 5e26faa86441ffafad94565a3f6b73e5da97cd57 Mon Sep 17 00:00:00 2001 From: ematipico Date: Mon, 17 Jul 2023 16:25:39 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/app/index.ts | 8 ++++++-- packages/astro/src/core/build/generate.ts | 3 +-- packages/astro/src/core/render/core.ts | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/astro/src/core/app/index.ts b/packages/astro/src/core/app/index.ts index b50ab123f0..92f954bc52 100644 --- a/packages/astro/src/core/app/index.ts +++ b/packages/astro/src/core/app/index.ts @@ -13,7 +13,12 @@ import { consoleLogDestination } from '../logger/console.js'; import { error, type LogOptions } from '../logger/core.js'; import { prependForwardSlash, removeTrailingForwardSlash } from '../path.js'; import { RedirectSinglePageBuiltModule } from '../redirects/index.js'; -import { createEnvironment, createRenderContext, type Environment } from '../render/index.js'; +import { + createEnvironment, + createRenderContext, + tryRenderPage, + type Environment, +} from '../render/index.js'; import { RouteCache } from '../render/route-cache.js'; import { createAssetLink, @@ -22,7 +27,6 @@ import { } from '../render/ssr-element.js'; import { matchRoute } from '../routing/match.js'; import type { RouteInfo } from './types'; -import { tryRenderPage } from '../render/index.js'; export { deserializeManifest } from './common.js'; const clientLocalsSymbol = Symbol.for('astro.locals'); diff --git a/packages/astro/src/core/build/generate.ts b/packages/astro/src/core/build/generate.ts index 72cc23f55e..5be11e7474 100644 --- a/packages/astro/src/core/build/generate.ts +++ b/packages/astro/src/core/build/generate.ts @@ -45,7 +45,7 @@ import { RedirectSinglePageBuiltModule, routeIsRedirect, } from '../redirects/index.js'; -import { createEnvironment, createRenderContext } from '../render/index.js'; +import { createEnvironment, createRenderContext, tryRenderPage } from '../render/index.js'; import { callGetStaticPaths } from '../render/route-cache.js'; import { createAssetLink, @@ -69,7 +69,6 @@ import type { StylesheetAsset, } from './types'; import { getTimeStat } from './util.js'; -import { tryRenderPage } from '../render/index.js'; function createEntryURL(filePath: string, outFolder: URL) { return new URL('./' + filePath + `?time=${Date.now()}`, outFolder); diff --git a/packages/astro/src/core/render/core.ts b/packages/astro/src/core/render/core.ts index b268bc890c..a4934f2772 100644 --- a/packages/astro/src/core/render/core.ts +++ b/packages/astro/src/core/render/core.ts @@ -6,12 +6,12 @@ import type { } from '../../@types/astro'; import { renderPage as runtimeRenderPage } from '../../runtime/server/index.js'; import { attachToResponse } from '../cookies/index.js'; +import { createAPIContext } from '../endpoint/index.js'; +import { callMiddleware } from '../middleware/callMiddleware.js'; import { redirectRouteGenerate, redirectRouteStatus, routeIsRedirect } from '../redirects/index.js'; import type { RenderContext } from './context.js'; import type { Environment } from './environment.js'; import { createResult } from './result.js'; -import { createAPIContext } from '../endpoint/index.js'; -import { callMiddleware } from '../middleware/callMiddleware.js'; export type RenderPage = { mod: ComponentInstance;