unjs / unjs/obuild

Parallel builds

Open
#42 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
432
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Describe the feature

Build entries are independent and could be processed concurrently.
Probably it only makes sense for larger projects with lots of entries where isolatedDeclarations can't be used for declarations emit, since spawning a child process can be slower than processing everything in one go.

Workers could be spawned for each entry (limited by CPU core count), and optionally the main thread could also be used for the largest entry.

Additional information
  • Would you be willing to help implement this feature?

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

No files, tests, or entry points are named. Start by tracing how build entries are scheduled and how declaration emit handles isolatedDeclarations; define the worker-limit and main-thread behavior before implementing. Done means independent entries can build concurrently without changing output, while small projects avoid unnecessary process overhead.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.