/third_party/node/lib/internal/modules/esm/ |
D | loader.js | 84 async resolve(specifier, parentURL) { argument 85 const isMain = parentURL === undefined; 86 if (!isMain && typeof parentURL !== 'string' && !isURLInstance(parentURL)) 87 throw new ERR_INVALID_ARG_TYPE('parentURL', ['string', 'URL'], parentURL); 90 specifier, { parentURL, conditions: DEFAULT_CONDITIONS }, defaultResolve); property 241 async getModuleJob(specifier, parentURL) { argument 242 const url = await this.resolve(specifier, parentURL); 256 const inspectBrk = parentURL === undefined && 258 job = new ModuleJob(this, url, loaderInstance, parentURL === undefined,
|
D | resolve.js | 785 function resolveAsCommonJS(specifier, parentURL) { argument 787 const parent = fileURLToPath(parentURL); 825 let { parentURL, conditions } = context; 826 if (parentURL && policy?.manifest) { 827 const redirects = policy.manifest.getDependencyMapper(parentURL); 840 parentURL, 865 if (parentURL && StringPrototypeStartsWith(parentURL, 'data:')) { 867 new URL(specifier, parentURL); 870 const isMain = parentURL === undefined; 872 parentURL = pathToFileURL(`${process.cwd()}/`).href; [all …]
|
/third_party/node/test/fixtures/es-module-loaders/ |
D | loader-invalid-url.mjs | 2 export async function resolve(specifier, { parentURL }, defaultResolve) { field 3 if (parentURL && specifier === '../fixtures/es-modules/test-esm-ok.mjs') { 8 return defaultResolve(specifier, {parentURL}, defaultResolve); field
|
D | loader-invalid-format.mjs | 1 export async function resolve(specifier, { parentURL }, defaultResolve) { field 2 if (parentURL && specifier === '../fixtures/es-modules/test-esm-ok.mjs') { 7 return defaultResolve(specifier, {parentURL}, defaultResolve); field
|
D | not-found-assert-loader.mjs | 6 export async function resolve(specifier, { parentURL }, defaultResolve) { field 9 return defaultResolve(specifier, {parentURL}, defaultResolve); field 12 await defaultResolve(specifier, {parentURL}, defaultResolve); field
|
D | example-loader.mjs | 11 export function resolve(specifier, { parentURL = baseURL }, defaultResolve) { property 19 // return defaultResolve(specifier, {parentURL}, defaultResolve); 23 const resolved = new URL(specifier, parentURL);
|
D | missing-dynamic-instantiate-hook.mjs | 1 export function resolve(specifier, { parentURL }, defaultResolve) { field 7 return defaultResolve(specifier, {parentURL}, defaultResolve); field
|
D | loader-with-dep.mjs | 6 export function resolve (specifier, { parentURL }, defaultResolve) { field 8 url: defaultResolve(specifier, {parentURL}, defaultResolve).url, field
|
D | loader-shared-dep.mjs | 8 export function resolve(specifier, { parentURL }, defaultResolve) { field 10 return defaultResolve(specifier, {parentURL}, defaultResolve); field
|
D | loader-unknown-builtin-module.mjs | 1 export async function resolve(specifier, { parentURL }, defaultResolve) { field 7 return defaultResolve(specifier, {parentURL}, defaultResolve); field
|
/third_party/node/lib/ |
D | repl.js | 445 let parentURL; 450 parentURL = pathToFileURL(path.join(process.cwd(), 'repl')).href; 462 return asyncESM.ESMLoader.import(specifier, parentURL); 484 let parentURL; 489 parentURL = pathToFileURL(path.join(process.cwd(), 'repl')).href; 504 return asyncESM.ESMLoader.import(specifier, parentURL);
|
/third_party/node/doc/api/ |
D | esm.md | 287 description: Add support for WHATWG `URL` object to `parentURL` parameter. 620 * `parentURL` {string} 646 * parentURL: !(string | undefined), 652 const { parentURL = null } = context; 657 url: parentURL ? 658 new URL(specifier, parentURL).href : 863 const { parentURL = null } = context; 872 } else if (parentURL && parentURL.startsWith('https://')) { 874 url: new URL(specifier, parentURL).href 946 const { parentURL = baseURL } = context; [all …]
|
/third_party/node/tools/ |
D | lint-md.mjs | 20433 * @param {{parentURL?: string, conditions?: string[]}} context 20437 const {parentURL} = context; 20456 if (parentURL.startsWith('data:')) { 20458 new URL$1(specifier, parentURL); 20462 let url = moduleResolve(specifier, new URL$1(parentURL), conditions); 20496 return defaultResolve(specifier, {parentURL: parent}).url property
|