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