We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 247afce commit 0aff7bcCopy full SHA for 0aff7bc
src/package.js
@@ -126,7 +126,8 @@ class Package {
126
* @return {Promise<undefined>}
127
*/
128
init() {
129
- const handler = require(this.script);
+ const mod = require(this.script);
130
+ const handler = typeof mod.default === 'function' ? mod.default : mod;
131
132
this.handler = handler(this.core, this);
133
0 commit comments