Skip to content

Commit

Permalink
support application/javascript for .html files
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Aug 26, 2019
1 parent 2a0d7e9 commit 784a109
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/script-load.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ systemJSPrototype.instantiate = function (url, firstParentUrl) {
_export('default', stylesheet);
});
} else if (url.slice(-5) === '.html') {
return Promise.reject(Error("Error loading " + url + ". '.html' modules not implemented."));
return loadDynamicModule(function () {
throw Error("Error loading " + url + ". '.html' modules not implemented.")
});
} else {
return new Promise(function (resolve, reject) {
let err;
Expand Down

0 comments on commit 784a109

Please sign in to comment.