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
Does not work in single var statement defining multiple variables #25
Comments
Actually it seems to be linked to this issue: var fs = require('fs');
window.fs = fs; This will throw an error:
This seems to prevent request from working. |
@avetisk I don't think these are related. Why are you trying to reassign |
Actually, I'm not, I was just monkey-testing to find out why request wasn't working. Within request, |
That's because mime doesn't support brfs: broofa/mime#61 (comment) |
ARG. |
I made a bunch of progress toward the multi-var use-case upstream in static-module 0.0.9 but your particular use-case still doesn't work. |
@substack do you have an idea where the bug comes from? |
Testing brfs@1.4.0 with the following and not able to reproduce this bug: var fs = require('fs'),
data = fs.readFileSync('./data.txt', 'utf8')
console.log(data) |
The example provided in the README works fine, but the following does not:
I am not sure if this is a browserify limitation or an actual bug though.
The text was updated successfully, but these errors were encountered: