web-infra-dev / web-infra-dev/rslib

[Feature]: bundle declarationMap

Open
#836 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

api-extractor
Dominant language
TypeScript
Stars
1k
Forks
67
Avg merge
6h 9m
Merged PRs (30d)
57

Description

What problem does this feature solve?

https://www.typescriptlang.org/tsconfig/#declarationMap

It's crucial for using rslib in monorepo that nearly all IDE (VS Code, JetBrains, etc.) relies on this to provide a correct "jump to definition" feature

What does the proposed API look like?

I think it's enough that just add a declarationMap: true option to output config.

Contributor guide

Open the contributing guide

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

The issue names no repository files or tests; start by locating the output configuration handling and reading the linked TypeScript declarationMap documentation. Done means the output configuration accepts declarationMap: true and bundled declarations provide the source mapping needed for IDE jump-to-definition.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.