babel-plugin-debug-macros
Version:
Debug macros and feature flag stripping
31 lines (30 loc) • 885 B
TypeScript
export interface NormalizedOptions {
externalizeHelpers?: {
module?: boolean;
global?: string;
};
flags: Record<string, Record<string, boolean | null | '@embroider/macros'>>;
debugTools: {
isDebug: boolean | '@embroider/macros';
debugToolsImport: string;
assertPredicateIndex: number | undefined;
};
}
export interface UserOptions {
externalizeHelpers?: {
module?: boolean;
global?: string;
};
svelte?: Record<string, string>;
flags?: {
source: string;
name?: string;
flags: Record<string, boolean | string | null | '@embroider/macros'>;
}[];
debugTools?: {
isDebug: boolean | '@embroider/macros';
source: string;
assertPredicateIndex?: number;
};
}
export declare function normalizeOptions(options: UserOptions): NormalizedOptions;