katoikia-app/web-ui/web-react/node_modules/@svgr/babel-plugin-remove-jsx-emp.../lib/index.js

17 lines
330 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
"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;