@farmfe/core
Version:
Farm is a extremely fast web build tool written in Rust. Farm can start a project in milliseconds and perform HMR within 10ms, making it much faster than similar tools like webpack and vite.
16 lines (15 loc) • 716 B
TypeScript
/**
* The following is modified based on source found in
* https://github.com/vitejs/vite/blob/main/packages/vite/src/node/env.ts
*
* MIT License
* Copyright (c) 2019-present, Yuxi (Evan)
* https://github.com/vitejs/vite/blob/main/LICENSE
*
*/
export declare function loadEnv(mode: string, envDir: string, prefixes?: string | string[]): Record<string, string>;
export declare function getExistsEnvFiles(mode: string, envDir: string): string[];
export type CompilationMode = 'development' | 'production';
export declare function setProcessEnv(mode: CompilationMode): void;
export declare const isDisableCache: () => boolean;
export declare function getEnvFilesForMode(mode: string, envDir: string): string[];