Skip to content

Commit

Permalink
feat(okam-build): add global logger
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhy committed Nov 2, 2018
1 parent 1dceffa commit 8a3aaa2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/okam-build/lib/build/init-build-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ function initBuildOptions(appType, options, cliOpts = {}) {
let {logger, logLevel} = buildConf;
buildConf.logger = initLogger(logger, logLevel, userConfig);

// add logger to global
if (!global.okamLogger) {
global.okamLogger = buildConf.logger;
}

// init polyfill options
let {localPolyfill, polyfill} = buildConf;
let polyfillConf = normalizePolyfill(
Expand Down

0 comments on commit 8a3aaa2

Please sign in to comment.