First off, thanks for this really helpful library. Great to have a bullet-proof import vs having to write try-catch statements myself.
I noticed that the package is currently incompatible with Vite. To replicate, just setup a new Vite project (Vite 3 or Vite 4, breaks in both), import the package, and run npm run dev (which runs vite command for HMR)
I'm guessing it has something to do with how this package is bundled for npm.
First off, thanks for this really helpful library. Great to have a bullet-proof import vs having to write try-catch statements myself.
I noticed that the package is currently incompatible with Vite. To replicate, just setup a new Vite project (Vite 3 or Vite 4, breaks in both), import the package, and run
npm run dev
(which runsvite
command for HMR)I'm guessing it has something to do with how this package is bundled for npm.
Any ideas? Thanks!