mirror of https://github.com/node-red/node-red.git
Merge 04b36e7374
into 23c44db30d
commit
2389c5933a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue