Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Commit cb940d1

Browse files
committed
Allow disabling logging with loggerFn: false
1 parent 6505f65 commit cb940d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

parser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ function parse(code, options) {
100100
*/
101101
if (typeof options.loggerFn === "function") {
102102
extra.log = options.loggerFn;
103+
} else if (options.loggerFn === false) {
104+
extra.log = () => {}
103105
}
104106

105107
}

0 commit comments

Comments
 (0)