tsserver with "module": "Preserve"
and "moduleResolution": "Bundler"
adds .js extensions to imports
#59200
Labels
Milestone
π Search Terms
Preserve, Bundler, .js extension
π Version & Regression Information
β― Playground Link
https://github.com/segevfiner/typescript-js-extension-issue
π» Code
Completion in the
"./foo"
in the lines below uncommented results in./foo.js
despite using"moduleResolution": "Bundler"
.π Actual behavior
It completes to
./foo.js
π Expected behavior
It should complete to
./foo
as we are in"moduleResolution": "Bundler"
but"module": "Preserve"
causes it to add thejs
extension.Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: