1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = void 0;
|
7 |
|
8 | function _helperPluginUtils() {
|
9 | const data = require("@babel/helper-plugin-utils");
|
10 |
|
11 | _helperPluginUtils = function () {
|
12 | return data;
|
13 | };
|
14 |
|
15 | return data;
|
16 | }
|
17 |
|
18 | var _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 |
|
32 | exports.default = _default; |
\ | No newline at end of file |