Skip to content

Commit

Permalink
Allows for dots in lazyloaded file names (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiebern authored and devongovett committed Feb 14, 2018
1 parent 95a6ebf commit dc43135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/builtins/bundle-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ function loadBundle(bundle) {
return bundles[bundle];
}

var type = bundle.match(/\.(.+)$/)[1].toLowerCase();
var type = (bundle.substring(bundle.lastIndexOf('.') + 1, bundle.length) || bundle).toLowerCase();
var bundleLoader = bundleLoaders[type];
if (bundleLoader) {
return bundles[bundle] = bundleLoader(getBundleURL() + bundle)
.then(function (resolved) {
if (resolved) {
module.bundle.modules[id] = [function (require,module) {
module.bundle.modules[id] = [function (require, module) {
module.exports = resolved;
}, {}];
}
Expand Down

0 comments on commit dc43135

Please sign in to comment.