UNPKG

snowpack

Version:

The ESM-powered frontend build tool. Fast, lightweight, unbundled.

35 lines (34 loc) 1.24 kB
/// <reference types="node" /> import { SnowpackConfig } from '../types'; export declare const SRI_CLIENT_HMR_SNOWPACK: string; export declare const SRI_ERROR_HMR_SNOWPACK: string; export declare function getMetaUrlPath(urlPath: string, config: SnowpackConfig): string; export declare function wrapImportMeta({ code, hmr, env, config, }: { code: string; hmr: boolean; env: boolean; config: SnowpackConfig; }): string; export declare function wrapHtmlResponse({ code, hmr, hmrPort, isDev, config, mode, }: { code: string; hmr: boolean; hmrPort?: number; isDev: boolean; config: SnowpackConfig; mode: 'development' | 'production'; }): string; export declare function transformGlobImports({ contents: _code, resolveImportGlobSpecifier, }: { contents: string; resolveImportGlobSpecifier: any; }): Promise<string>; export declare function wrapImportProxy({ url, code, hmr, config, }: { url: string; code: string | Buffer; hmr: boolean; config: SnowpackConfig; }): Promise<string>; export declare function generateEnvModule({ mode, isSSR, configEnv, }: { mode: SnowpackConfig['mode']; isSSR: boolean; configEnv?: Record<string, string | boolean | undefined>; }): string;