PromoCursed/node_modules/@svgr/babel-plugin-remove-jsx-empty-expression/lib/index.js
2024-08-20 23:25:37 +04:00

17 lines
330 B
JavaScript

"use strict";
exports.__esModule = true;
exports.default = void 0;
const removeJSXEmptyExpression = () => ({
visitor: {
JSXExpressionContainer(path) {
if (!path.get('expression').isJSXEmptyExpression()) return;
path.remove();
}
}
});
var _default = removeJSXEmptyExpression;
exports.default = _default;