UNPKG

608 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = void 0;
7
8function _helperPluginUtils() {
9 const data = require("@babel/helper-plugin-utils");
10
11 _helperPluginUtils = function () {
12 return data;
13 };
14
15 return data;
16}
17
18var _default = (0, _helperPluginUtils().declare)(api => {
19 api.assertVersion(7);
20 return {
21 visitor: {
22 CallExpression(path, file) {
23 if (path.get("callee").matchesPattern("Object.setPrototypeOf")) {
24 path.node.callee = file.addHelper("defaults");
25 }
26 }
27
28 }
29 };
30});
31
32exports.default = _default;
\No newline at end of file