From 58fc32f2e634ea448eb42a5cfd03c9ebc324d9c5 Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 3 May 2021 06:48:03 +0200 Subject: [PATCH] Behavior optimized when resources are missing --- core/request-analyzer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/request-analyzer.js b/core/request-analyzer.js index 99dd5333..f674a19f 100644 --- a/core/request-analyzer.js +++ b/core/request-analyzer.js @@ -139,6 +139,9 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel } else { resourcePattern = resourcePath.replace(versionNumber, Resource.VERSION_PLACEHOLDER); } + if (resourcePattern === undefined) { + return false; + } shorthandResource = shorthands.specialFiles(channelHost, channelPath, destinationSearchString); if (shorthandResource) {