DEV: Correctly detect plugin JS with `.br.js` extension (#16073)

This commit is contained in:
David Taylor 2022-03-01 11:55:17 +00:00 committed by GitHub
parent bf6173509c
commit fd8388776e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

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