Skip to content

Commit cf0f715

Browse files
Sander SluisSander Sluis
authored andcommitted
Fix the plugins option
1 parent f704aaa commit cf0f715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = function (source) {
2323
compileDebug: this.debug || false
2424
}, query)
2525
if (options.plugins){
26-
if (typeof options.plugins === 'object') {
26+
if (!(options.plugins instanceof Array)) {
2727
options.plugins = [options.plugins];
2828
}
2929
}

0 commit comments

Comments
 (0)