News for hackers. Stuff that matters.
Re:NPM and NodeJS should do more to make ES Modules easy to use by everforward on Thursday June 20, 2024 @01:55PM (#40741355)
A core problem here is that modules are generally a unique key, but exported identifiers are not. My editor does what you're talking about, but can be unhelpful because if I type in "create" I get 83,000 results. That would be much more helpful if it were pre-filtered by module so I get 6 results instead.
Re:NPM and NodeJS should do more to make ES Modules easy to use by fwlr on Thursday June 20, 2024 @06:28PM (#40744136)
I’m so used to fuzzy search at this point that it didn’t even occur to me, but yeah, you’re right.

I guess tooling can still provide a solution - a snippet on “import”, where the first tab stop takes you to the module path string, and the next tab stop jumps back to inside the braces?