-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser Support #6
Comments
This package runs fine in the browser, here's a working example: requirebin. |
we should just update the module to not require fs anymore and feature detect for an fs stream to avoid further confusion |
@mafintosh if you can tell me how you want that change made I can do it for sure. Is there another way to correctly check if we should call @yoshuawuyts Thanks, I know that it does work, but that does not mean much unless it is tested and officially supported :) |
Hey, I'm having problems getting this module to work in react native. If someone can point out to me how to remove the |
Ah herp derp that was easy, patch |
Hello folks, hope you're doing well I'm getting issues with SSR using this package:
I was wondering if you can use process package as a dependency to avoid this issue? 🤔 Thanks for your help! |
Same here! |
We can just typedef check if it’s there. Wanna PR that? |
@mafintosh I've made a PR to move the process check to be after we confirm whether or not we're ina browser: #58 |
@mafintosh can you take a look at @markoorn pr? i am getting error |
Same here, any solution? Thanks |
I've managed to solve the process issue with this vite config, hope it helps
|
I see #5, but it is not mentioned in the readme and imports
fs
.I can open a PR to run the tests in Sauce Labs like @feross mentioned, and add a badge to the readme if you want. I am not sure how to do it without a tool like mocha, but I am sure I could figure it out.
If you are bundling the package with a tool like browserify you would have to exclude the
fs
module. There is a fairly simple way I have used to support smaller browser builds using a small DI wrapper. I can make a PR for this to if you are interested.Thanks!!
The text was updated successfully, but these errors were encountered: