Closed
Description
Search Terms
- Refactor
- import
Suggestion
For the code:
import { a, b, c} from './xyz';
console.log(a, b, c);
Add a refactoring to convert the import to:
import * as xyz from './xyz';
console.log(xyz.a, xyz.b, xyz.c);
With a rename being triggered on xyz
Use Cases
I can see this being useful:
- List of imports become too long and unmanageable.
- Make it clear in code where a name comes from