UNPKG

@vue-jsx-vapor/babel

Version:
22 lines (20 loc) 653 B
//#region src/utils.ts function isConditionalExpression(path) { return !!(path && (path?.type === "LogicalExpression" || path.type === "ConditionalExpression") && (path.parent.type === "JSXExpressionContainer" || isConditionalExpression(path.parentPath))); } function isJSXElement(node) { return !!node && (node.type === "JSXElement" || node.type === "JSXFragment"); } //#endregion Object.defineProperty(exports, 'isConditionalExpression', { enumerable: true, get: function () { return isConditionalExpression; } }); Object.defineProperty(exports, 'isJSXElement', { enumerable: true, get: function () { return isJSXElement; } });