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.
1 parent bd37b38 commit 17f59c5Copy full SHA for 17f59c5
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