Skip to content

Commit 5138efc

Browse files
zyy7259watilde
authored andcommitted
support es6 export
1 parent c362488 commit 5138efc

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)