Can the importItems object be passed into OnResolveArgs? The plugin I'm working on really needs the member names from this object.
- Dominant language
- Go
- Stars
- 40.1k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
Can the importItems object be passed into OnResolveArgs? The plugin I'm working on really needs the member names from this object.
For example, for the statement: import AX, { x1 as X, x2 } from "m"
build.onResolve({ filter: /.*/ }, (args) => {
console.log(args.importItems ); // output-> ["default","x1","x2"]
return { path: args.path };
});
Contributor guide
No contributing guide indexed for this repository
Research direction
The payload names no files or tests; start by tracing esbuild's onResolve plugin API for the example import statement and where its imported member names are available. Done means OnResolveArgs exposes the requested names, producing ["default","x1","x2"] for the shown import.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, javascript
- Domain
- api, compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100