is-buffer icon indicating copy to clipboard operation
is-buffer copied to clipboard

Distribute an ESM version

Open benmccann opened this issue 4 years ago • 0 comments

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 (https://github.com/vitejs/vite-plugin-react/issues/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

benmccann avatar Jul 20 '21 17:07 benmccann