index.js 333 B

12345678910111213141516
  1. 'use strict';
  2. var core = require('@babel/core');
  3. const removeJSXEmptyExpression = () => ({
  4. visitor: {
  5. JSXExpressionContainer(path) {
  6. if (core.types.isJSXEmptyExpression(path.get("expression"))) {
  7. path.remove();
  8. }
  9. }
  10. }
  11. });
  12. module.exports = removeJSXEmptyExpression;
  13. //# sourceMappingURL=index.js.map