Skip to content

Mixing of ES module and CommonJS syntax #9

@fabregas4

Description

@fabregas4

Hi team,

Have had great difficulty importing this package into my Vite/Remix project.

Just hit error after error due to the fact the library is mixing CommonJS and ES Module syntax.

Can't say I've ever had to deal with this with other packages.

I got it working in development using https://www.npmjs.com/package/vite-plugin-cjs-interop - but this resulted in further errors when it came to a production build, which I couldn't work out.

I don't want to dive into all the details of the errors and things done to avoid each. I just want to ask if there are plans to release an ES Module supported version of this library so it can simply be imported into ESM apps?

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions