uapte
This commit is contained in:
22
node_modules/babel-plugin-transform-do-expressions/lib/index.js
generated
vendored
22
node_modules/babel-plugin-transform-do-expressions/lib/index.js
generated
vendored
@@ -1,22 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
exports.default = function () {
|
||||
return {
|
||||
inherits: require("babel-plugin-syntax-do-expressions"),
|
||||
|
||||
visitor: {
|
||||
DoExpression: function DoExpression(path) {
|
||||
var body = path.node.body.body;
|
||||
if (body.length) {
|
||||
path.replaceWithMultiple(body);
|
||||
} else {
|
||||
path.replaceWith(path.scope.buildUndefinedNode());
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
module.exports = exports["default"];
|
||||
Reference in New Issue
Block a user