tiddly-gittly / tiddly-gittly/plugin-dev-cli
support customizing esbuild platform
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
In order to develop plugins that are intended for server usage with node.js, it is important to be able to configure esbuild's platform argument. Currently it is set to browser, which prevents plugin code from importing node built-in libraries.
Would it be possible to make this configurable?
Thank you for this very useful library!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading src/packup.ts around line 300, where the esbuild platform is currently set to browser. Trace how build options are received and passed through, then check how a configurable platform could be exposed. Done means a server-oriented plugin can select node as the platform and import Node.js built-ins successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- build-system, cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100