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
a.node.ts
create index.ts
create tsconfig.json with
{
"moduleSuffixes":[".node",""]
}
run tsc -w
stackblitz link
馃檨 Actual behavior
generated index.js directly imports a from './a'
馃檪 Expected behavior
generated index.js directly imports a from './a.node' according to moduleSuffixes
Bug Report
typescript generated output don't follow
moduleSuffixesoption,馃攷 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
a.node.ts
create index.ts
create tsconfig.json with
{ "moduleSuffixes":[".node",""] }run
tsc -wstackblitz link
馃檨 Actual behavior
generated index.js directly imports
afrom './a'馃檪 Expected behavior
generated index.js directly imports
afrom './a.node' according to moduleSuffixes