Skip to content

Commit 344cd9d

Browse files
authored
ref(node): Add log for running in ESM/CommonJS mode (#12134)
To make debugging etc. easier for us in the future.
1 parent c8f1661 commit 344cd9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/node/src/sdk/init.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ function _init(
173173
client.init();
174174
}
175175

176+
logger.log(`Running in ${isCjs() ? 'CommonJS' : 'ESM'} mode.`);
177+
176178
if (options.autoSessionTracking) {
177179
startSessionTracking();
178180
}

0 commit comments

Comments
 (0)