From 6de265dafddc7b6def25e907607d5af47c37431d Mon Sep 17 00:00:00 2001 From: Jeffrey Way Date: Wed, 25 Jan 2017 12:13:13 -0500 Subject: [PATCH] A library value can be a string or an array. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mix.autoload({ jquery: ‘$’ }); —or— mix.autoload({ jquery: [‘$’] }); --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 3b23fd5c1..c22bc0c44 100644 --- a/src/index.js +++ b/src/index.js @@ -63,7 +63,7 @@ module.exports.autoload = (libs) => { let aliases = {}; Object.keys(libs).forEach(library => { - libs[library].forEach(alias => { + [].concat(libs[library]).forEach(alias => { aliases[alias] = library; }); });