I believe that during browserify's compile step, it parses the source for any requires and does a dumb copy from the node_modules folder into a bundle file. Having a variable in there seems to confuse it and it doesnt copy it.