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

Distribute an ESM version #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

benmccann
Copy link

This allows for an improved experience with unbundled development tools like Vite and Snowpack. Those tools first have to convert all non-ESM dependencies to ESM. This allows those tools to operate more quickly.

Vite also will fail when an ESM module declares a dependency on a CJS module (vitejs/vite-plugin-react#30). This will allow is-buffer to be used with SvelteKit / Vite projects

I just copied the file to avoid adding any type of build step since it's so small. But if you'd prefer, I could have just a single file with the other one being generated

Is the code comment supposed to be /*! or /** ? I left it as the former since that's what the existing file does, but it seems wrong to me

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

Successfully merging this pull request may close these issues.

2 participants