You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
330 B
17 lines
330 B
"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;
|