Add node modules and new code for release (#39)
Co-authored-by: tbarnes94 <tbarnes94@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a10d84bc2e
commit
7ad2aa66bb
31
node_modules/@babel/helper-module-transforms/lib/rewrite-this.js
generated
vendored
Normal file
31
node_modules/@babel/helper-module-transforms/lib/rewrite-this.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = rewriteThis;
|
||||
|
||||
var _helperReplaceSupers = require("@babel/helper-replace-supers");
|
||||
|
||||
function rewriteThis(programPath) {
|
||||
programPath.traverse(rewriteThisVisitor);
|
||||
}
|
||||
|
||||
const rewriteThisVisitor = {
|
||||
ThisExpression(path) {
|
||||
path.replaceWith(path.scope.buildUndefinedNode());
|
||||
},
|
||||
|
||||
Function(path) {
|
||||
if (path.isMethod()) (0, _helperReplaceSupers.skipAllButComputedKey)(path);else if (!path.isArrowFunctionExpression()) path.skip();
|
||||
},
|
||||
|
||||
ClassProperty(path) {
|
||||
(0, _helperReplaceSupers.skipAllButComputedKey)(path);
|
||||
},
|
||||
|
||||
ClassPrivateProperty(path) {
|
||||
path.skip();
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user