evanw / evanw/esbuild

Include initialOptions in BuildContext

Open
#4,352 1 comment 0 reactions 0 assignees View on GitHub
breaking
Dominant language
Go
Stars
40.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Expose an `initialOptions` like property on the build context. This can make it easier to identify the context, and/or allow scenarios such as adding entrypoints from build A as watchFiles to build A where B manages the lifecycle of A (i.e. where A is a dependent of B, allow B to introspect A)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the BuildContext API and trace how build options are represented and exposed. Determine the intended shape and lifecycle of an initialOptions-like property, then verify that it supports identifying a context and the dependent-build watchFiles scenario described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.