Re:NPM and NodeJS should do more to make ES Modules easy to use
by eddd-ddde on Thursday June 20, 2024 @12:49PM
(#40740721)
You can type the real name, import it with autocomplete, then rename the symbol (f2), which creates the alias.
[ Parent
| on HN ]
Re:NPM and NodeJS should do more to make ES Modules easy to use
by eyelidlessness on Thursday June 20, 2024 @02:44PM
(#40741849)
I should’ve been more clear that I meant import specifier aliases. Eg in TypeScript, this is often determined by `paths` in tsconfig.json. It may also be controlled by `imports` in package.json, or any number of other tools and configs.