pull/3984/merge
LuisK Ruiz 2025-03-18 07:29:57 +00:00 committed by GitHub
commit 2389c5933a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ function importModule(module) {
// specific file that is loaded when the module is required/imported
// As this won't be on the natural module search path, we use createRequire
// to access the module
const modulePath = createRequire(moduleDir).resolve(module)
const modulePath = createRequire(moduleDir).resolve(parsedModule.module)
// Import needs the full path to the module's main .js file
// It also needs to be a file:// url for Windows
const moduleUrl = url.pathToFileURL(modulePath);