UNPKG

knip

Version:

Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects

14 lines (13 loc) 392 B
export function createBunShellVisitor(ctx) { return { TaggedTemplateExpression(node) { const tag = node.tag; if (tag.type === 'Identifier' && tag.name === '$') { for (const q of node.quasi.quasis) { if (q.value.raw) ctx.addScript(q.value.raw); } } }, }; }