mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
4667b07cd2
PR-URL: https://github.com/nodejs/node/pull/44710 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com> Co-authored-by: Geoffrey Booth <webadmin@geoffreybooth.com> Co-authored-by: Michaël Zasso <targos@protonmail.com>
32 lines
605 B
JavaScript
32 lines
605 B
JavaScript
import { writeSync } from 'node:fs';
|
|
import { inspect } from 'node:util'
|
|
|
|
export async function resolve(...args) {
|
|
writeSync(1, `resolve arg count: ${args.length}\n`);
|
|
writeSync(1, inspect({
|
|
specifier: args[0],
|
|
context: args[1],
|
|
next: args[2],
|
|
}) + '\n');
|
|
|
|
return {
|
|
shortCircuit: true,
|
|
url: args[0],
|
|
};
|
|
}
|
|
|
|
export async function load(...args) {
|
|
writeSync(1, `load arg count: ${args.length}\n`);
|
|
writeSync(1, inspect({
|
|
url: args[0],
|
|
context: args[1],
|
|
next: args[2],
|
|
}) + '\n');
|
|
|
|
return {
|
|
format: 'module',
|
|
source: '',
|
|
shortCircuit: true,
|
|
};
|
|
}
|