I’m facing this issue in this Vite started repository. https://github.com/vicainelli/vite-starter I’m using Vite + Preact + Vitest + Testing Library If I’m testing any code inside the codebase, it works fine, but If the test runs against some component that uses another component from an ext…
Tag: preact
ES module imports – can it always be done? A failed example trying to import socket.io-client
I’m trying to use a “build-less” process so I’m using a plain module script in an html file (following the Preact docs): I’m able to get the client socket.io working if I by-pass the module system and rely on the window global (note: I’m serving the html file from an http s…