19 lines
734 B
TypeScript
19 lines
734 B
TypeScript
/// <reference types="node" />
|
|
import type fs from 'node:fs';
|
|
import type * as vite from 'vite';
|
|
import type { AstroSettings, SSRManifest } from '../@types/astro';
|
|
import type { LogOptions } from '../core/logger/core.js';
|
|
export interface AstroPluginOptions {
|
|
settings: AstroSettings;
|
|
logging: LogOptions;
|
|
fs: typeof fs;
|
|
}
|
|
export default function createVitePluginAstroServer({ settings, logging, fs: fsMod, }: AstroPluginOptions): vite.Plugin;
|
|
/**
|
|
* It creates a `SSRManifest` from the `AstroSettings`.
|
|
*
|
|
* Renderers needs to be pulled out from the page module emitted during the build.
|
|
* @param settings
|
|
* @param renderers
|
|
*/
|
|
export declare function createDevelopmentManifest(settings: AstroSettings): SSRManifest;
|