source: imaps-frontend/node_modules/@babel/helper-define-polyfill-provider/lib/visitors/entry.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 588 bytes
Line 
1"use strict";
2
3exports.__esModule = true;
4exports.default = void 0;
5var _utils = require("../utils");
6var _default = callProvider => ({
7 ImportDeclaration(path) {
8 const source = (0, _utils.getImportSource)(path);
9 if (!source) return;
10 callProvider({
11 kind: "import",
12 source
13 }, path);
14 },
15 Program(path) {
16 path.get("body").forEach(bodyPath => {
17 const source = (0, _utils.getRequireSource)(bodyPath);
18 if (!source) return;
19 callProvider({
20 kind: "import",
21 source
22 }, bodyPath);
23 });
24 }
25});
26exports.default = _default;
Note: See TracBrowser for help on using the repository browser.