Merge 04b36e7374003e13382b63000a2561430b150cc2 into 9694c8bdfac141b7a044c4bbe68cfc9528b008a7

This commit is contained in:
LuisK Ruiz 2025-02-09 14:47:09 +00:00 committed by GitHub
commit 84a7446554
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);