Skip to content

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