Sha256: 6ee0fd57754703902b20c065cfaa00a1bfda1b05e8fd135e4d6429210d7933c2

Contents?: true

Size: 588 Bytes

Versions: 7

Compression:

Stored size: 588 Bytes

Contents

"use strict";

exports.__esModule = true;
exports.default = void 0;
var _utils = require("../utils");
var _default = callProvider => ({
  ImportDeclaration(path) {
    const source = (0, _utils.getImportSource)(path);
    if (!source) return;
    callProvider({
      kind: "import",
      source
    }, path);
  },
  Program(path) {
    path.get("body").forEach(bodyPath => {
      const source = (0, _utils.getRequireSource)(bodyPath);
      if (!source) return;
      callProvider({
        kind: "import",
        source
      }, bodyPath);
    });
  }
});
exports.default = _default;

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
immosquare-cleaner-0.1.50 node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
immosquare-cleaner-0.1.49 node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
immosquare-cleaner-0.1.48 node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
immosquare-cleaner-0.1.47 node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
immosquare-cleaner-0.1.46 node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js
immosquare-cleaner-0.1.45 node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js