docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A minimal utility that runs the Parcel CLI with optional experimental feature flag overrides for builds or dev server runs.
export type RunMode = 'build' | 'serve';
export interface FeatureFlagOptions {
entries: string[];
flags: Record<string, string>;
outDir?: string;
mode?: RunMode;
dryRun?: boolean;
}
export interface RunResult {
command: string;
exitCode: number | null;
exited: boolean;
outputDir: string;
}
export async function runWithFeatureFlags(options: FeatureFlagOptions): Promise<RunResult>;Bundles assets and accepts experimental feature flag override arguments to toggle internal behavior.