unjs / unjs/obuild

Support declarations generation after transform

Open
#35 1 comment 1 reaction 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

Requires https://github.com/unjs/obuild/pull/34

Output files coming from these mkdist loaders that are marked as declaration: true will be set to declaration: "generate" so we can collect them before writing the output and run the declarations emit altogether.

Originally posted by @zsilbi in https://github.com/unjs/obuild/issues/34#issuecomment-2920037950

For Vue SFC:

i think we can have the fallback transformer as mkdist did, since vue-tsc is not support allowArbitraryExtensions yet.

Originally posted by @Teages in https://github.com/unjs/obuild/issues/34#issuecomment-2919130902

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 reviewing the required obuild pull request 34 and the mkdist loader behavior described in this issue. Trace how transformed output marked for declaration generation is collected and emitted, including the Vue SFC fallback; done means declarations are generated after transformation and Vue SFC handling remains supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.