sindresorhus / get-stream

Get a stream as a string, Buffer, ArrayBuffer or array
MIT License
341 stars 33 forks source link

Pre-compiled npm package #22

Closed mshndev closed 6 years ago

mshndev commented 6 years ago

I'm getting an error building my react app with your package. more about this issue Can you please publish a pre-compiled package? Thanks!

sindresorhus commented 6 years ago

This module mainly targets Node.js, not the browser. It's up to you to transpile it with Babel if you want to use it in the browser. You can find a more detailed explanation here: https://github.com/sindresorhus/ama/issues/446

I'm sorry that create-react-app is lacking in this aspect, but it's up to them to support the community. Each package should not be required to specially support create-react-app. Please do open an issue on create-react-app about this pain point.