1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #3669 from dschmidt/patch-1

Import default export if node is a transpiled es module
This commit is contained in:
Nick O'Leary 2022-06-27 14:31:43 +01:00 committed by GitHub
commit dd0d1e700e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -359,6 +359,7 @@ function loadNodeSet(node) {
try {
var loadPromise = null;
var r = require(node.file);
r = r.__esModule ? r.default : r
if (typeof r === "function") {
var red = registryUtil.createNodeApi(node);