Skip to content

Vite compatibility #29

@micah-redwood

Description

@micah-redwood

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)

image

I'm guessing it has something to do with how this package is bundled for npm.

Any ideas? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions