|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
723 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.default = void 0;
|
|---|
| 7 | var _helperPluginUtils = require("@babel/helper-plugin-utils");
|
|---|
| 8 | var _util = require("./util.js");
|
|---|
| 9 | var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
|
|---|
| 10 | const {
|
|---|
| 11 | types: t,
|
|---|
| 12 | assertVersion
|
|---|
| 13 | } = api;
|
|---|
| 14 | assertVersion(7);
|
|---|
| 15 | return {
|
|---|
| 16 | name: "plugin-bugfix-safari-rest-destructuring-rhs-array",
|
|---|
| 17 | visitor: {
|
|---|
| 18 | ArrayPattern(path) {
|
|---|
| 19 | const rhs = (0, _util.shouldTransform)(path);
|
|---|
| 20 | if (rhs) {
|
|---|
| 21 | path.replaceWith(t.arrayPattern([path.node]));
|
|---|
| 22 | rhs.replaceWith(t.arrayExpression([rhs.node]));
|
|---|
| 23 | }
|
|---|
| 24 | }
|
|---|
| 25 | }
|
|---|
| 26 | };
|
|---|
| 27 | });
|
|---|
| 28 |
|
|---|
| 29 | //# sourceMappingURL=index.js.map
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.