[ci] format
This commit is contained in:
parent
e314a04bfb
commit
3fd10f4597
6 changed files with 3 additions and 7 deletions
|
@ -5,7 +5,6 @@ import type { OutputAsset, OutputChunk } from 'rollup';
|
|||
import { fileURLToPath } from 'url';
|
||||
import type {
|
||||
AstroConfig,
|
||||
AstroMiddlewareInstance,
|
||||
AstroSettings,
|
||||
ComponentInstance,
|
||||
EndpointHandler,
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import type { Plugin as VitePlugin } from 'vite';
|
||||
import { MIDDLEWARE_PATH_SEGMENT_NAME } from '../../constants.js';
|
||||
import { addRollupInput } from '../add-rollup-input.js';
|
||||
import type { BuildInternals } from '../internal.js';
|
||||
import type { AstroBuildPlugin } from '../plugin';
|
||||
import type { StaticBuildOptions } from '../types';
|
||||
import { addRollupInput } from '../add-rollup-input.js';
|
||||
|
||||
export const MIDDLEWARE_MODULE_ID = '@astro-middleware';
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ import { generatePages } from './generate.js';
|
|||
import { trackPageData } from './internal.js';
|
||||
import { createPluginContainer, type AstroBuildPluginContainer } from './plugin.js';
|
||||
import { registerAllPlugins } from './plugins/index.js';
|
||||
import { MIDDLEWARE_MODULE_ID } from './plugins/plugin-middleware.js';
|
||||
import {
|
||||
ASTRO_PAGE_EXTENSION_POST_PATTERN,
|
||||
ASTRO_PAGE_RESOLVED_MODULE_ID,
|
||||
|
@ -32,7 +33,6 @@ import { RESOLVED_RENDERERS_MODULE_ID } from './plugins/plugin-renderers.js';
|
|||
import { SSR_VIRTUAL_MODULE_ID } from './plugins/plugin-ssr.js';
|
||||
import type { AllPagesData, PageBuildData, StaticBuildOptions } from './types';
|
||||
import { getTimeStat } from './util.js';
|
||||
import { MIDDLEWARE_MODULE_ID } from './plugins/plugin-middleware.js';
|
||||
|
||||
export async function viteBuild(opts: StaticBuildOptions) {
|
||||
const { allPages, settings } = opts;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import type { default as vite, InlineConfig } from 'vite';
|
||||
import type {
|
||||
AstroConfig,
|
||||
AstroMiddlewareInstance,
|
||||
AstroSettings,
|
||||
BuildConfig,
|
||||
ComponentInstance,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import type {
|
||||
APIContext,
|
||||
AstroConfig,
|
||||
AstroMiddlewareInstance,
|
||||
EndpointHandler,
|
||||
EndpointOutput,
|
||||
MiddlewareEndpointHandler,
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import type { AstroMiddlewareInstance, ComponentInstance } from '../../@types/astro';
|
||||
import type { ComponentInstance } from '../../@types/astro';
|
||||
import type { SinglePageBuiltModule } from '../build/types';
|
||||
import type { MiddlewareHandler } from '../../@types/astro';
|
||||
|
||||
// A stub of a component instance for a given route
|
||||
export const RedirectComponentInstance: ComponentInstance = {
|
||||
|
|
Loading…
Reference in a new issue