-
Notifications
You must be signed in to change notification settings - Fork 171
Closed
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededreleased
Description
Problem
Currently, only nodeFileTrace is exported, which always performs full recursive dependency tracing. There's no way to analyze a single file without tracing all its dependencies.
Use Case
Single file analysis in build tools
// Vite/Rollup plugin that needs per-file analysis
async transform(code, id) {
const job = new Job(...);
const result = await analyze(id, code, job);
// ...
}Proposed Solution
Export analyze and Job from src/index.ts.
Question: Would this be sufficient for the use cases above, or are there limitations in the current implementation that would need to be addressed first?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededreleased