Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide esm version #330

Open
tobiasdiez opened this issue Mar 4, 2023 · 2 comments
Open

Provide esm version #330

tobiasdiez opened this issue Mar 4, 2023 · 2 comments

Comments

@tobiasdiez
Copy link

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.

@jimmywarting
Copy link
Contributor

jimmywarting commented Apr 5, 2023

vote for pure ESM-only

@BenceSzalai
Copy link

BenceSzalai commented Aug 26, 2023

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants