Skip to content

Make this an ES Module #2

@frederik-station

Description

@frederik-station

I'm using this module inside a Nuxt app.
With server-side rendering enabled the import has to work both server and client-side (after hydration).
While everything works for production builds, I'm getting errors in dev mode trying to import it. I'm assuming Nuxts transpilation of Common JS to ES Modules doesn't work in dev mode.

Do you have any plans publishing this as an ECMAScript Module so it can be easily imported both in Node and the browser?
See https://nuxt.com/docs/guide/concepts/esm#library-author-guide

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