mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
17 lines
330 B
JavaScript
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;
|