π Search Terms
Preserve, Bundler, .js extension
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about completions
β― 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".
// import { FOO } from "./foo";
// import { FOO } from "./foo.js";
π 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 the js extension.
Additional information about the issue
No response
π 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.jsdespite using"moduleResolution": "Bundler".π Actual behavior
It completes to
./foo.jsπ Expected behavior
It should complete to
./fooas we are in"moduleResolution": "Bundler"but"module": "Preserve"causes it to add thejsextension.Additional information about the issue
No response