UNPKG

@embroider/macros

Version:

Standardized build-time macros for ember apps.

11 lines (10 loc) 519 B
import type { NodePath } from '@babel/traverse'; import type { types as t } from '@babel/core'; import type State from './state'; export interface MacroCondition { parity: boolean; conditional: NodePath<t.IfStatement | t.ConditionalExpression>; callExpression: NodePath<t.CallExpression>; } export declare function identifyMacroConditionPath(path: NodePath<t.IfStatement | t.ConditionalExpression>): MacroCondition | false; export default function macroCondition(macro: MacroCondition, state: State): void;