Closed
Description
π Search Terms
- Convert named import to namespace import
π Version & Regression Information
5.8.0-dev.20241114
not a regression
β― Playground Link
No response
π» Code
For code such as:
import { abc } from "./a.js";
console.log(abc);
- Run convert to namespace import
π Actual behavior
The new namespace name is aJs
:
import * as aJs from "./a.js";
console.log(aJs.abc);
π Expected behavior
It would be better to drop the file extension as part of the name:
import * as a from "./a.js";
console.log(a.abc);
Additional information about the issue
No response