mirror of https://github.com/nodejs/node.git
12 lines
374 B
JavaScript
12 lines
374 B
JavaScript
import {createRequire} from '../../common/index.mjs';
|
|
|
|
const require = createRequire(import.meta.url);
|
|
const dep = require('./loader-dep.js');
|
|
|
|
export async function resolve(specifier, { parentURL, importAttributes }, defaultResolve) {
|
|
return {
|
|
url: (await defaultResolve(specifier, { parentURL, importAttributes }, defaultResolve)).url,
|
|
format: dep.format
|
|
};
|
|
}
|