mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Correctly detect plugin JS with .br.js
extension (#16073)
This commit is contained in:
parent
bf6173509c
commit
fd8388776e
@ -41,7 +41,9 @@ export default function identifySource(error) {
|
|||||||
// Production mode
|
// Production mode
|
||||||
plugin =
|
plugin =
|
||||||
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) {
|
if (plugin) {
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user