Closed martixy closed 7 months ago
or use vite-plugin-monkey/dist/client
instead of $
import {} from 'vite-plugin-monkey/dist/client'
Thank you! That works. A good excuse to look through the plugin's code too I guess.
Tho I'm kinda curious why importing $ still works, it just doesn't auto-complete. Ah well.
Can this be achieved?
It's nice that vscode understands
$
when I import, in say my Svelte component or whatever, but I get none of that in.js
files. And actually in a project that mixes some framework I get errors on top the IDE providing completion/hints:So, is it possible to enable hints/completion for vanilla js files as well? How does it work for the special framework files anyway?
(Tried looking around a bit but I'm not familiar enough with typescript and how it intergrates with the build system to figure out anything.)