UNPKG

next-plugin-preval

Version:

> Pre-evaluate async functions (for data fetches) at build time and import them like JSON

8 lines (7 loc) 334 B
import type webpack from 'webpack'; interface PrevalLoaderOptions { extensions?: string[]; } export declare function _prevalLoader(_: string, resource: string, options: PrevalLoaderOptions): Promise<string>; declare const loader: (this: webpack.LoaderContext<PrevalLoaderOptions>, content: string) => void; export default loader;