Add jassub/libpgs support on the web

This commit is contained in:
2026-07-08 14:54:00 +02:00
parent 8494e3d600
commit 24bbe17b19
14 changed files with 340 additions and 51 deletions
+9
View File
@@ -54,6 +54,15 @@ module.exports = {
test: /\.(png|jpe?g|gif|svg)$/i,
type: "asset/resource",
},
{
// jassub references its bundled `./default.woff2` via
// `new URL(..., import.meta.url)` in a branch that only runs when no
// `defaultFont` is provided. We always pass one, so disable webpack's
// eager URL-asset parsing for jassub to avoid resolving a file it does
// not ship.
test: /[\\/]jassub[\\/]/,
parser: { url: false },
},
],
},
plugins: [