|
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:
588 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | exports.__esModule = true;
|
|---|
| 4 | exports.default = void 0;
|
|---|
| 5 | var _utils = require("../utils");
|
|---|
| 6 | var _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 | });
|
|---|
| 26 | exports.default = _default; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.