diff --git a/CHANGES.md b/CHANGES.md index 8fba0b1..068e91a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,6 +8,7 @@ Known issues: ## bunyan 1.3.4 (not yet released) +- [issue #219] Hide 'source-map-support' require from browserify. - [issue #218] Reset `haveNonRawStreams` on `.addStream`. diff --git a/lib/bunyan.js b/lib/bunyan.js index f7b4d9e..c74c108 100644 --- a/lib/bunyan.js +++ b/lib/bunyan.js @@ -60,7 +60,8 @@ var isBrowser = function () { return typeof (window) !== 'undefined' && this === window; }(); try { - var sourceMapSupport = require('source-map-support'); + /* Use `+ ''` to hide this import from browserify. */ + var sourceMapSupport = require('source-map-support' + ''); } catch (_) { sourceMapSupport = null; }