Override tsep loggerFn with noop (#2144)

* Override tsep loggerFn with noop

* Extra function to keep Vjeux happy :P
master
James Henry 2017-06-14 22:53:05 +01:00 committed by Christopher Chedeau
parent f361910036
commit 3726067923
1 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,10 @@ function tryParseTypeScript(text, jsx) {
tokens: true,
comment: true,
useJSXTextNode: true,
ecmaFeatures: { jsx }
ecmaFeatures: { jsx },
// Override logger function with noop,
// to avoid unsupported version errors being logged
loggerFn: () => {}
});
}