Skip to content

Instantly share code, notes, and snippets.

@maniart
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maniart/4e7d3395ce0e55f2e67d to your computer and use it in GitHub Desktop.
Save maniart/4e7d3395ce0e55f2e67d to your computer and use it in GitHub Desktop.
Comma separated `fs` module require in Browserify
// Will parse OK
var fs = require('fs');
var $ = require('jquery')(window);
// Will NOT parse
var fs = require('fs'),
$ = require('jquery')(window);
// Also documented here: https://github.com/substack/node-browserify/issues/950
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment