mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Update variable name
This commit is contained in:
parent
e1d974be03
commit
393658c54d
@ -346,9 +346,9 @@ function loadNodeSet(node) {
|
||||
try {
|
||||
let importPromise = import(node.file);
|
||||
return importPromise
|
||||
.then(function(module_namespace_object) {
|
||||
.then(function(moduleNamespaceObject) {
|
||||
// CJS will always have default, ESM might have default. (details in note below)
|
||||
let r = module_namespace_object.default ? module_namespace_object.default : module_namespace_object;
|
||||
let r = moduleNamespaceObject.default ? moduleNamespaceObject.default : moduleNamespaceObject;
|
||||
// Babel related workaround. (references in note below)
|
||||
r = r.__esModule ? r.default : r;
|
||||
return createLoadPromise(node, r);
|
||||
|
Loading…
Reference in New Issue
Block a user