From fe83a267db60f17ad63a8121f9d7f443e8002491 Mon Sep 17 00:00:00 2001 From: wener Date: Fri, 23 Sep 2022 00:08:45 +0800 Subject: [PATCH] avoid module-types override shouldFetch --- src/extras/module-types.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/extras/module-types.js b/src/extras/module-types.js index 69daaa0b..ff8b628a 100644 --- a/src/extras/module-types.js +++ b/src/extras/module-types.js @@ -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 systemJSPrototype.shouldFetch = function (url) { - return moduleTypesRegEx.test(url); + return _shouldFetch(url) || moduleTypesRegEx.test(url); }; var jsonContentType = /^application\/json(;|$)/;