UNPKG

f2e-server3

Version:

f2e-server 3.0

22 lines (21 loc) 1.24 kB
import { EsbuildConfig } from './interface'; import { BuildOptions, BuildResult } from 'esbuild'; export declare const default_config: Required<EsbuildConfig>; export declare const generate_global_name: (inject_global_name: string, lib_hash: string) => string; export declare const generate_filename: (filename: string, hash: string) => string; export declare const generate_inject_code: (inject_global_name: string, lib_hash: string, is_dev: boolean) => string; export declare const generate_externals_code: (inject_global_name: string, external: string[], lib_hash: string) => string; export declare const generate_banner_code: (inject_global_name: string, lib_hash: string) => string; export declare const generate_hash: (modules: string[], system_hash: string) => string; export interface BuildExternalFileOptions { filename: string; conf: EsbuildConfig; modules: string[]; lib_hash: string; } export declare const build_external_file: ({ filename, conf, modules, lib_hash }: BuildExternalFileOptions) => void; export declare const getEntryPaths: (entryPoints: BuildOptions["entryPoints"]) => { in: string; out: string; }[]; export declare const build_css_paths: (result: BuildResult, root: string) => string[];