Skip to content

The browser field in package.json causes vite to fail to parse properly #84

@0xDing

Description

@0xDing

I'm using this package in a vite + react project and vite seems to be incorrectly reading "browser": "dist/browser.js" from package.json as the load entry, resulting in an error.

Changing package.json to { "browser": { "vanilla": "dist/browser.js" } } may help with this issue.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions