tiddly-gittly / tiddly-gittly/plugin-dev-cli

support customizing esbuild platform

Open
#16 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.