* Proxy the dynamic import handling to the default loader for source text modules. * @param {string} specifier - The module specifier string. * @param {number} phase - The module import phase. * @param {Record } attributes - The import attributes object. * @param {string|null|unde
(specifier, phase, attributes, referrerName)
| 210 | * @returns {Promise<import('internal/modules/esm/loader.js').ModuleExports>} - The imported module object. |
| 211 | */ |
| 212 | function defaultImportModuleDynamicallyForModule(specifier, phase, attributes, referrerName) { |
| 213 | const cascadedLoader = require('internal/modules/esm/loader').getOrInitializeCascadedLoader(); |
| 214 | return cascadedLoader.import(specifier, referrerName, attributes, phase); |
| 215 | } |
| 216 | |
| 217 | /** |
| 218 | * Proxy the dynamic import to the default loader for classic scripts. |
no test coverage detected
searching dependent graphs…