UNPKG

650 BSource Map (JSON)View Raw
1{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport { types as t, NodePath } from '@babel/core'\n\nconst removeJSXEmptyExpression = () => ({\n visitor: {\n JSXExpressionContainer(path: NodePath<t.JSXExpressionContainer>) {\n if (t.isJSXEmptyExpression(path.get('expression'))) {\n path.remove()\n }\n },\n },\n})\n\nexport default removeJSXEmptyExpression\n"],"names":["t"],"mappings":";;;;MAGM,2BAA2B;AAAO,EACtC,SAAS;AAAA,IACP,uBAAuB,MAA0C;AAC/D,UAAIA,WAAE,qBAAqB,KAAK,IAAI,gBAAgB;AAClD,aAAK;AAAA;AAAA;AAAA;AAAA;;;;"}
\No newline at end of file