Skip to content

Commit 037e3fd

Browse files
dnluptargos
authored andcommitted
module: remove usage of require('util') in esm/loader.js
Use `require('internal/util/debuglog').debuglog` instead of `require('util').debuglog` in `lib/internal/modules/esm/loader.js`. PR-URL: #26804 Refs: #26546 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 414d6f5 commit 037e3fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/modules/esm/loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const translators = require('internal/modules/esm/translators');
1818

1919
const FunctionBind = Function.call.bind(Function.prototype.bind);
2020

21-
const debug = require('util').debuglog('esm');
21+
const debug = require('internal/util/debuglog').debuglog('esm');
2222

2323
/* A Loader instance is used as the main entry point for loading ES modules.
2424
* Currently, this is a singleton -- there is only one used for loading

0 commit comments

Comments
 (0)