Skip to content

Commit

Permalink
Cherry-pick PR #33225 into release-3.6 (#33226)
Browse files Browse the repository at this point in the history
Component commits:
541e96e Handle browserify-ignored module result for etw logger
  • Loading branch information
typescript-bot authored and weswigham committed Sep 4, 2019
1 parent cd32df6 commit 9cbb7ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/perfLogger.ts
Expand Up @@ -36,8 +36,8 @@ namespace ts {
etwModule = undefined;
}

/** Performance logger that will generate ETW events if possible */
export const perfLogger: PerfLogger = etwModule ? etwModule : nullLogger;
/** Performance logger that will generate ETW events if possible - check for `logEvent` member, as `etwModule` will be `{}` when browserified */
export const perfLogger: PerfLogger = etwModule && etwModule.logEvent ? etwModule : nullLogger;

perfLogger.logInfoEvent(`Starting TypeScript v${versionMajorMinor} with command line: ${JSON.stringify(process.argv)}`);
}

0 comments on commit 9cbb7ea

Please sign in to comment.