Skip to content

Provide esm version #330

Open
Open

Description

@tobiasdiez

With more and more build tools (vite, nuxt, etc) going towards an esm-first build, it would be nice if a proper esm interface could be provided, i.e. transpile and distribute esm version, including correct export declaration in package.json.

Activity

  1. jimmywarting commented on Apr 5, 2023

    @jimmywarting
    Contributor

    vote for pure ESM-only

  2. BenceSzalai commented on Aug 26, 2023

    @BenceSzalai

    Meanwhile could anyone show a workaround to use it with Vite/Rollup? Importing from 'source-map-support/browser-source-map-support.js' seems to be broken: TypeError: Cannot set properties of undefined (setting 'sourceMapSupport')

    UPDATE:
    Nevermind, all I needed to do was:

    import sourceMapSupport from 'source-map-support'
    sourceMapSupport.install()

    It works just fine with Vite.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions