Skip to content
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
This repository was archived by the owner on Aug 13, 2026. It is now read-only.

Make this an ES Module #2

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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