microsoft / microsoft/TypeScript
Does not find .mts file when doing extensionless import and Bundler
オープン
まだ誰も着手していません。
Awaiting More Feedback
Suggestion
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.4k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
🔎 Search Terms
mts bundler
🕗 Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about Bundler
⏯ Playground Link
cannot test modulerResolution in the playground
💻 Code
tsconfig.json
moduleResolution: "Bundler"
file.mts
export const hi = 1
file2.mts
import {hi} from './file'
🙁 Actual behavior
fails to find ./file
🙂 Expected behavior
should resolve just like a bundler, so it should find the .mts file
Additional information about the issue
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
moduleResolution を Bundler に設定した tsconfig.json、file.mts、および './file' をインポートする file2.mts を使って、このケースを再現します。まず、拡張子のないインポートに対するコンパイラの Bundler モジュール解決パスを追跡します。.mts ファイルが解決され、動作にリグレッションテストのカバレッジが追加されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- compilers
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100