Skip to content

Commit 145221d

Browse files
1999kamilogorek
andauthored
Replace old-style require(console) with a global object (#3623)
Co-authored-by: Kamil Ogórek <[email protected]>
1 parent 113be3a commit 145221d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/node/src/integrations/console.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ export class Console implements Integration {
1919
* @inheritDoc
2020
*/
2121
public setupOnce(): void {
22-
const consoleModule = require('console');
2322
for (const level of ['debug', 'info', 'warn', 'error', 'log']) {
24-
fill(consoleModule, level, createConsoleWrapper(level));
23+
fill(console, level, createConsoleWrapper(level));
2524
}
2625
}
2726
}

0 commit comments

Comments
 (0)