Skip to content

Commit

Permalink
A library value can be a string or an array.
Browse files Browse the repository at this point in the history
mix.autoload({ jquery: ‘$’ });

—or—

mix.autoload({ jquery: [‘$’] });
  • Loading branch information
JeffreyWay committed Jan 25, 2017
1 parent f00a04f commit 6de265d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -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;
});
});
Expand Down

0 comments on commit 6de265d

Please sign in to comment.