Skip to content

Commit 56ec95e

Browse files
authored
Merge pull request #103 from kasuvy/APIGOV-29723
APIGOV-29723 Fix for loading ESM - node.js upgrade on axway-cli and esm conversion
2 parents 6f0b5e6 + 0f426ce commit 56ec95e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/parser/extension.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ export default class Extension {
267267
ctx = ctx.default;
268268
}
269269

270+
if (ctx.__esModule) {
271+
ctx = ctx.default;
272+
}
273+
270274
// if the export was a function, call it now to get its CLI definition
271275
if (typeof ctx === 'function') {
272276
ctx = await ctx(this);

0 commit comments

Comments
 (0)