DEV: Fix source-identifier for plugins when using .gz assets (#30820)

This commit is contained in:
David Taylor
2025-01-16 15:33:28 +00:00
committed by GitHub
parent 1ae35ecce8
commit 892d02fda1

View File

@@ -58,7 +58,7 @@ export default function identifySource(error) {
// Production (with fingerprints)
plugin ??= stack.match(
/assets\/plugins\/_?([\w-]+)-[0-9a-f]+(?:\.br)?\.js/
/assets\/plugins\/_?([\w-]+)-[0-9a-f]+(?:\.(?:br|gz))?\.js/
)?.[1];
if (plugin) {