We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75d6648 commit 761a9edCopy full SHA for 761a9ed
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