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 bd37b38 + 17f59c5 commit 9e7f0a5Copy full SHA for 9e7f0a5
index.js
@@ -117,8 +117,8 @@ module.exports = function (browserify, options) {
117
118
// load plugins by name (if a string is used)
119
plugins = plugins.map(function requirePlugin (name) {
120
- // assume functions are already required plugins
121
- if (typeof name === 'function') {
+ // assume not strings are already required plugins
+ if (typeof name !== 'string') {
122
return name;
123
}
124
0 commit comments