d2-ui
Version:
22 lines (18 loc) • 542 B
JavaScript
/*istanbul ignore next*/"use strict";
exports.__esModule = true;
exports.default = function () {
return {
inherits: require("babel-plugin-syntax-do-expressions"),
visitor: { /*istanbul ignore next*/
DoExpression: function DoExpression(path) {
var body = path.node.body.body;
if (body.length) {
path.replaceWithMultiple(body);
} else {
path.replaceWith(path.scope.buildUndefinedNode());
}
}
}
};
};
/*istanbul ignore next*/module.exports = exports["default"];