Closed
Description
Bug Report
typescript generated output don't follow moduleSuffixes
option,
🔎 Search Terms
searched terms: moduleSuffixes
, result none
🕗 Version & Regression Information
typescript@4.7.3 and typescript@next(4.8.0-dev.20220616)
💻 Code
create 2 ts files
a.web.ts
export const a = "web"
a.node.ts
export const a = "node"
create index.ts
import {a} from './a'
create tsconfig.json with
{
"moduleSuffixes":[".node",""]
}
run tsc -w
🙁 Actual behavior
generated index.js directly imports a
from './a'
🙂 Expected behavior
generated index.js directly imports a
from './a.node' according to moduleSuffixes