Overriding outbase
- Dominant language
- Go
- Stars
- 40.1k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
Hi there!
Given the following:
```js
await esbuild.build({
outbase: "app/javascript"
})
```
```js
// app/javascript/index.js
import ""
```
Produces the following:
```
_.._/_.._/node_modules/pkg
```
What I would like it to produce:
```
node_modules/pkg
```
Is there a way to use an `onResolve` plugin to either mimic an "outbase" and ignore it for "node_module" imports, or is there a way to override "outbase" for specific imports?
Contributor guide
No contributing guide indexed for this repository
Research direction
The payload names no files or tests. Start by reproducing the esbuild.build configuration with outbase and the onResolve plugin, then trace resolver and output-path handling; done means the reported node_modules import is not prefixed by outbase, with coverage for this case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, javascript
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100