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:
@@ -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>;
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user