test: accept externalized discord voice fallback

(cherry picked from commit 13424b9b3e)
This commit is contained in:
Peter Steinberger
2026-05-02 22:46:46 +01:00
parent 96b574f486
commit 3a5a2bfaf4
2 changed files with 8 additions and 0 deletions

View File

@@ -59,6 +59,9 @@ const OPTIONAL_OR_EXTERNALIZED_RUNTIME_IMPORTS = new Set([
"@matrix-org/matrix-sdk-crypto-nodejs",
"link-preview-js",
"matrix-js-sdk",
// Discord voice decoder fallback. The root chunk catches missing decoders and the owning
// Discord plugin remains externalized from the root package.
"opusscript",
]);
const require = createRequire(import.meta.url);
const acorn = require("acorn") as typeof import("acorn");