UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

16 lines (15 loc) 549 B
import type fsMod from 'node:fs'; import type { Plugin as VitePlugin } from 'vite'; import type { AstroSettings } from '../types/astro.js'; /** * This plugin is responsible to load the known file `actions/index.js` / `actions.js` * If the file doesn't exist, it returns an empty object. * @param settings */ export declare function vitePluginUserActions({ settings }: { settings: AstroSettings; }): VitePlugin; export declare function vitePluginActions({ fs, settings, }: { fs: typeof fsMod; settings: AstroSettings; }): VitePlugin;