mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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: https://github.com/nodejs/node/pull/26804
Refs: https://github.com/nodejs/node/issues/26546
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
005528ac82
commit
ad661ca209
1 file changed
+1
-1
@@ -18,7 +18,7 @@ const translators = require('internal/modules/esm/translators');
|
||||
|
||||
const FunctionBind = Function.call.bind(Function.prototype.bind);
|
||||
|
||||
const debug = require('util').debuglog('esm');
|
||||
const debug = require('internal/util/debuglog').debuglog('esm');
|
||||
|
||||
/* A Loader instance is used as the main entry point for loading ES modules.
|
||||
* Currently, this is a singleton -- there is only one used for loading
|
||||
|
||||
Reference in new issue
Block a user