diff --git a/packages/node_modules/@node-red/registry/lib/loader.js b/packages/node_modules/@node-red/registry/lib/loader.js index 678e4c885..7a7b8340d 100644 --- a/packages/node_modules/@node-red/registry/lib/loader.js +++ b/packages/node_modules/@node-red/registry/lib/loader.js @@ -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);