Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[api-extractor] Support string literals in named exports (e.g. `export { foo as "module.exports" }`)

Open
#5,549 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
nodejs, typescript
Domain
tooling

Research direction

Start with the @microsoft/api-extractor rollups scenario and reproduce the issue using the provided .d.ts declaration with a string-literal named export. Trace how the declaration is processed and verify that the export name remains "module.exports" rather than becoming module.exports.

Written by the indexing model from the issue text.

Description

Summary

Support string literals in named exports (e.g. export { foo as "module.exports" })

Repro steps

Use '@microsoft/api-extractor' to bundle a list of type definition files.
One of which contains a string literal named export

Expected result:

https://www.typescriptlang.org/play/?ts=5.9.3#code/MYewdgzgLgBAZiEMC8MDkAjAhgJzQbgChCBTADwAcQdYBveRGLCdAWxABMBXAGxIDpyVGhDQwAvkA

declare const foo = "bar";
export { foo as 'module.exports' };

Actual result:

declare const foo = "bar";
export { foo as module.exports };

Details

See: https://joyeecheung.github.io/blog/2025/12/30/require-esm-in-node-js-implementers-tales/

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/api-extractor version? latest
Operating system? max
API Extractor scenario? rollups
Would you consider contributing a PR? No
TypeScript compiler version? latest
Node.js version (node -v)? latest
Dominant language
TypeScript
Stars
6.5k
Forks
708
Avg merge
4d 13h
Merged PRs (30d)
62

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.

More from microsoft/rushstack

All issues in microsoft/rushstack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.