Skip to content

Commit

Permalink
[bug fix] Make sure bundles is an array in loadBundlesLazy (#755)
Browse files Browse the repository at this point in the history
* always add the bundle-loader module

* check if the asset is already in the bundle

* make sure bundles is an array in loadBundlesLazy
  • Loading branch information
albizures authored and devongovett committed Feb 6, 2018
1 parent 6d23efd commit e3fcfa0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/builtins/bundle-loader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
var getBundleURL = require('./bundle-url').getBundleURL;

function loadBundlesLazy(bundles) {
if (!Array.isArray(bundles)) {
bundles = [bundles]
}

var id = bundles[bundles.length - 1];

try {
Expand Down

0 comments on commit e3fcfa0

Please sign in to comment.