Hide 'source-map-support' require from browserify. Fixes #219
This commit is contained in:
parent
ef669b6660
commit
a7c646191d
2 changed files with 3 additions and 1 deletions
|
@ -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`.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue