Hide 'source-map-support' require from browserify. Fixes #219

This commit is contained in:
Trent Mick 2015-02-19 20:41:34 -08:00
parent ef669b6660
commit a7c646191d
2 changed files with 3 additions and 1 deletions

View file

@ -8,6 +8,7 @@ Known issues:
## bunyan 1.3.4 (not yet released) ## bunyan 1.3.4 (not yet released)
- [issue #219] Hide 'source-map-support' require from browserify.
- [issue #218] Reset `haveNonRawStreams` on `<logger>.addStream`. - [issue #218] Reset `haveNonRawStreams` on `<logger>.addStream`.

View file

@ -60,7 +60,8 @@ var isBrowser = function () {
return typeof (window) !== 'undefined' && this === window; }(); return typeof (window) !== 'undefined' && this === window; }();
try { try {
var sourceMapSupport = require('source-map-support'); /* Use `+ ''` to hide this import from browserify. */
var sourceMapSupport = require('source-map-support' + '');
} catch (_) { } catch (_) {
sourceMapSupport = null; sourceMapSupport = null;
} }