export enum BuildMode { Development = "development" , Production = "production" } export function isBuildMode ( mode ) { return mode === BuildMode . Development || mode === BuildMode . Production ; } export enum BuildTarget { Browser = "browser" , Server = "server" , CloudflareWorkers = "cloudflare-workers" , Node14 = "node14" } export function isBuildTarget ( target ) { return ( target === BuildTarget . Browser || target === BuildTarget . Server || target === BuildTarget . Node14 ) ; } export interface BuildOptions { mode : BuildMode ; target : BuildTarget ; }