As defined in: https://github.com/substack/node-browserify#external-requires Using `.require(` as defined in https://github.com/substack/node-browserify#brequirefile-opts throws, it seems that the file is not being compiled before passed to browserify.