Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#5,549 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
nodejs, typescript
領域
tooling

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
TypeScript
スター
6.5k
フォーク
708
平均マージ
4日 13時間
マージ済み PR(30日)
62

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/rushstack のほかの issue

microsoft/rushstack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。