We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75d6648 commit c0802b8Copy full SHA for c0802b8
src/compiler/perfLogger.ts
@@ -28,9 +28,11 @@ namespace ts {
28
// See https://github.com/microsoft/typescript-etw for more information
29
let etwModule;
30
try {
31
- // require() will throw an exception if the module is not installed
+ const etwModulePath = process.env.TS_ETW_MODULE_PATH ?? "./node_modules/@microsoft/typescript-etw";
32
+
33
+ // require() will throw an exception if the module is not found
34
// It may also return undefined if not installed properly
- etwModule = require("@microsoft/typescript-etw");
35
+ etwModule = require(etwModulePath);
36
}
37
catch (e) {
38
etwModule = undefined;
0 commit comments