Skip to content

Commit e3fcfa0

Browse files
albizuresdevongovett
authored andcommitted
[bug fix] Make sure bundles is an array in loadBundlesLazy (#755)
* always add the bundle-loader module * check if the asset is already in the bundle * make sure bundles is an array in loadBundlesLazy
1 parent 6d23efd commit e3fcfa0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/builtins/bundle-loader.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
var getBundleURL = require('./bundle-url').getBundleURL;
22

33
function loadBundlesLazy(bundles) {
4+
if (!Array.isArray(bundles)) {
5+
bundles = [bundles]
6+
}
7+
48
var id = bundles[bundles.length - 1];
59

610
try {

0 commit comments

Comments
 (0)