niksy / node-stdlib-browser

Node standard library for browser.
MIT License
188 stars 13 forks source link

Add `*/promises` implementations #3

Open niksy opened 3 years ago

niksy commented 3 years ago

https://twitter.com/kikobeats/status/1399440807711723525?s=12

shellscape commented 9 months ago

This one keeps biting us with https://github.com/shellscape/jsx-email

niksy commented 9 months ago

@shellscape which one specifically? Maybe we can start with some implementation and go from there. We only have timers/promises currently.

shellscape commented 9 months ago

fs/promises is the one I get hit by most often. fwiw this is mostly to accommodate users which are importing packages which have these deps, and this gets raised at bundle time.

niksy commented 9 months ago

We can’t really provide anything useful for fs since it can’t really be polyfilled inside browser environment. I think you can alias it to noop in your build process for now.

shellscape commented 9 months ago

that's what I've done. @jspm/core has a complex take on that. subpath exports to noop would also help here