diff --git a/packages/babel/src/types/index.js b/packages/babel/src/types/index.js index 2f9bd85aeb..c89df77750 100644 --- a/packages/babel/src/types/index.js +++ b/packages/babel/src/types/index.js @@ -364,6 +364,14 @@ export function inherits(child: Object, parent: Object): Object { return child; } +/** + * Description + */ + +export function directive(value) { + return t.expressionStatement(t.literal(value)); +} + // Optimize property access. toFastProperties(t); toFastProperties(t.VISITOR_KEYS);