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)
|
||||
|
||||
- [issue #219] Hide 'source-map-support' require from browserify.
|
||||
- [issue #218] Reset `haveNonRawStreams` on `<logger>.addStream`.
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue