-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
Bug Report
typescript generated output don't follow moduleSuffixes option,
🔎 Search Terms
searched terms: moduleSuffixes, result none
🕗 Version & Regression Information
[email protected] 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
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug