This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+2 -4
View File
@@ -7,12 +7,10 @@ exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _helperReplaceSupers = _interopRequireDefault(require("@babel/helper-replace-supers"));
var _helperReplaceSupers = require("@babel/helper-replace-supers");
var _core = require("@babel/core");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function replacePropertySuper(path, getObjectRef, file) {
const replaceSupers = new _helperReplaceSupers.default({
getObjectRef: getObjectRef,
@@ -34,7 +32,7 @@ var _default = (0, _helperPluginUtils.declare)(api => {
path.get("properties").forEach(propPath => {
if (!propPath.isMethod()) return;
replacePropertySuper(propPath, getObjectRef, state);
replacePropertySuper(propPath, getObjectRef, state.file);
});
if (objectRef) {