Spaces:
Configuration error
Configuration error
File size: 333 Bytes
a053984 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
'use strict';
var core = require('@babel/core');
const removeJSXEmptyExpression = () => ({
visitor: {
JSXExpressionContainer(path) {
if (core.types.isJSXEmptyExpression(path.get("expression"))) {
path.remove();
}
}
}
});
module.exports = removeJSXEmptyExpression;
//# sourceMappingURL=index.js.map
|