Replace override raw-loader with ?raw query (#33854)

* Replace override raw-loader with `?raw` query

For compatibility with vite/st

* Make knip happy

* Fix icon in Jitsi lobby

* Fix jest config for `?raw`

* Remove stale `$webapp` alias

* Ensure css files loaded as `?raw` do not get bundled
This commit is contained in:
Michael Telatynski
2026-06-18 09:36:07 +00:00
committed by GitHub
parent 7a1a3f518c
commit 7bb842e8d4
9 changed files with 13 additions and 32 deletions
@@ -32,8 +32,7 @@ import { textForEvent } from "../../TextForEvent";
import { haveRendererForEvent } from "../../events/EventTileFactory";
import { SDKContext, SdkContextClass } from "../../contexts/SDKContext.ts";
import { DateSeparatorViewModel } from "../../viewmodels/room/timeline/DateSeparatorViewModel";
import exportJS from "!!raw-loader!./exportJS";
import exportJS from "./exportJS.js?raw";
export default class HTMLExporter extends Exporter {
protected avatars: Map<string, boolean>;
+1 -2
View File
@@ -7,8 +7,7 @@ Please see LICENSE files in the repository root for full details.
*/
import type { CssNode, Rule, StyleSheet } from "css-tree";
import customCSS from "!!raw-loader!./exportCustomCSS.css";
import customCSS from "./exportCustomCSS.css?raw";
const cssSelectorTextClassesRegex = /\.[\w-]+/g;
const appLayerName = "app-web";