Skip to content

Commit

Permalink
avoid module-types override shouldFetch
Browse files Browse the repository at this point in the history
  • Loading branch information
wenerme committed Sep 22, 2022
1 parent d44d41f commit e678420
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extras/module-types.js
Expand Up @@ -8,8 +8,9 @@ import { resolveUrl } from '../common.js';
var systemJSPrototype = global.System.constructor.prototype;

var moduleTypesRegEx = /^[^#?]+\.(css|html|json|wasm)([?#].*)?$/;
var _shouldFetch = systemJSPrototype.shouldFetch.bind(systemJSPrototype)
systemJSPrototype.shouldFetch = function (url) {
return moduleTypesRegEx.test(url);
return _shouldFetch(url) || moduleTypesRegEx.test(url);
};

var jsonContentType = /^application\/json(;|$)/;
Expand Down

0 comments on commit e678420

Please sign in to comment.