mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
module: implement register
utility
PR-URL: https://github.com/nodejs/node/pull/46826 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
parent
d2d4a310f1
commit
a40a6c890a
21 changed files with 490 additions and 10 deletions
|
@ -146,9 +146,9 @@ async function initializeHooks() {
|
|||
load(url, context) { return hooks.load(url, context); }
|
||||
}
|
||||
const privateModuleLoader = new ModuleLoader();
|
||||
|
||||
const parentURL = pathToFileURL(cwd).href;
|
||||
|
||||
// TODO(jlenon7): reuse the `Hooks.register()` method for registering loaders.
|
||||
for (let i = 0; i < customLoaderURLs.length; i++) {
|
||||
const customLoaderURL = customLoaderURLs[i];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue