mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge 04b36e7374003e13382b63000a2561430b150cc2 into 9694c8bdfac141b7a044c4bbe68cfc9528b008a7
This commit is contained in:
commit
84a7446554
@ -127,7 +127,7 @@ function importModule(module) {
|
|||||||
// specific file that is loaded when the module is required/imported
|
// 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
|
// As this won't be on the natural module search path, we use createRequire
|
||||||
// to access the module
|
// 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
|
// Import needs the full path to the module's main .js file
|
||||||
// It also needs to be a file:// url for Windows
|
// It also needs to be a file:// url for Windows
|
||||||
const moduleUrl = url.pathToFileURL(modulePath);
|
const moduleUrl = url.pathToFileURL(modulePath);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user