react-cosmos / rfcs

Change requests for React Cosmos
MIT License
1 stars 2 forks source link

Bun.sh support #27

Closed noahehall closed 1 year ago

noahehall commented 1 year ago

React Cosmos is one of the few component libraries that could ideally be paired with Bun.sh

However, it currently throws when using bun to bundle cosmos fixtures.

E.g. this repo with a div as a fixture

will throw an error about isBuffer3.default is not a function image

Potentially due to Bun's incomplete nodejs Buffer api

I figure there are two routes we can take

ovidiuch commented 1 year ago

The error seems to come from the isEqual Lodash method. Maybe this is fixed in the latest Bun versions? https://github.com/oven-sh/bun/issues/936

noahehall commented 1 year ago

@skidding interesting - honestly i didnt dive deep and correlated the buffer error msg to the incomplete buffer api - victim of a very long day.

but confirmed - lol simply clicking on the error was enoug ;) image

will update the devs over at bun.sh