Debian Codegraph @

packages/babel-helpers/test/fixtures/dependencies/missing/plugin.js

raw symbols SCIP
1 import defineHelper from "../../../helpers/define-helper.js";
2
3 const main = defineHelper(import.meta.url, "main", `
4 import dep from "(!!!)%-..a,4892 missing";
5
6 export default function helper() {
7 return dep();
8 }
9 `);
10
11 export default function() {
12 return {
13 visitor: {
14 Identifier(path) {
15 if (path.node.name !== "REPLACE_ME") return;
16 const helper = this.addHelper(main);
17 path.replaceWith(helper);
18 },
19 },
20 };
21 };