From 995f8fbea5d34e49f976239be870efdb0bcc2430 Mon Sep 17 00:00:00 2001 From: inottn Date: Tue, 20 Aug 2024 20:00:37 +0800 Subject: [PATCH] chore: add comment --- src/utils/getFilenameFromUrl.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/getFilenameFromUrl.js b/src/utils/getFilenameFromUrl.js index cff1b5587..0fe40c232 100644 --- a/src/utils/getFilenameFromUrl.js +++ b/src/utils/getFilenameFromUrl.js @@ -123,6 +123,7 @@ function getFilenameFromUrl(context, url, extra = {}) { if (extra.stats.isFile()) { foundFilename = filename; + // Rspack does not yet support `assetsInfo`, so we need to check if `assetsInfo` exists here if (assetsInfo) { const assetInfo = assetsInfo.get( pathname.slice(publicPathObject.pathname.length),