Skip to content

Commit a5e48ae

Browse files
zyy7259watilde
authored andcommitted
Support es6 export
1 parent a7579a3 commit a5e48ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ var plugins = argv.use.map(function(name) {
106106
} else {
107107
return null;
108108
}
109+
if (plugin.default && typeof plugin.default === 'function') {
110+
plugin = plugin.default;
111+
}
109112
if (name in argv) {
110113
plugin = plugin(argv[name]);
111114
} else {

0 commit comments

Comments
 (0)