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.
2 parents 511f10d + f5992d4 commit ee784fdCopy full SHA for ee784fd
lib/index.js
@@ -23,14 +23,9 @@ module.exports = function (source) {
23
compileDebug: this.debug || false
24
}, query)
25
if (options.plugins){
26
- if (typeof options.plugins === 'string') {
+ if (typeof options.plugins === 'object') {
27
options.plugins = [options.plugins];
28
}
29
- if (Array.isArray(options.plugins)) {
30
- options.plugins = options.plugins.map(function (plugin) {
31
- return require(plugin);
32
- });
33
- }
34
35
let template = pug.compile(source, options)
36
template.dependencies.forEach(this.addDependency)
0 commit comments