Sha256: e68fcf564e0de7f437ee3e15ea6eb60958e3769666821597c79482e2546bd565
Contents?: true
Size: 593 Bytes
Versions: 11
Compression:
Stored size: 593 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
11 entries across 10 versions & 3 rubygems