When running with NODE_ENV=production with version 2.6.0, I get an uncaught ReferenceError with this stack trace:
node_modules/browserify-middleware/lib/modules.js:15
cachedCompile(path, options, function () {});
^
ReferenceError: path is not defined
at Function.modules
(node_modules/browserify-middleware/lib/modules.js:15:19)
at browserify (node_modules/browserify-middleware/index.js:11:20)
When running with
NODE_ENV=production
with version2.6.0
, I get an uncaught ReferenceError with this stack trace:Pretty clear bug here: https://github.com/ForbesLindesay/browserify-middleware/blob/5832cf698f478c23759687e7db7ee211ba1d7ef9/lib/modules.js#L15