Fix imports

This commit is contained in:
redphx 2024-05-02 17:53:17 +07:00
parent 06c6b8c5af
commit e5ab7c93f9
3 changed files with 3 additions and 13 deletions

View File

@ -1,6 +1,5 @@
import stylus from 'stylus';
// @ts-ignore
import cssStr from "@assets/css/styles.styl" with { type: "text" };
const generatedCss = await (stylus(cssStr, {})

View File

@ -67,3 +67,6 @@ type XcloudTitleInfo = {
tileImageUrl: string;
};
};
declare module "*.svg";
declare module "*.styl";

View File

@ -1,26 +1,14 @@
// @ts-ignore
import iconController from "@assets/svg/controller.svg" with { type: "text" };
// @ts-ignore
import iconCopy from "@assets/svg/copy.svg" with { type: "text" };
// @ts-ignore
import iconCursorText from "@assets/svg/cursor-text.svg" with { type: "text" };
// @ts-ignore
import iconDisplay from "@assets/svg/display.svg" with { type: "text" };
// @ts-ignore
import iconMouseSettings from "@assets/svg/mouse-settings.svg" with { type: "text" };
// @ts-ignore
import iconMouse from "@assets/svg/mouse.svg" with { type: "text" };
// @ts-ignore
import iconNew from "@assets/svg/new.svg" with { type: "text" };
// @ts-ignore
import iconQuestion from "@assets/svg/question.svg" with { type: "text" };
// @ts-ignore
import iconRemotePlay from "@assets/svg/remote-play.svg" with { type: "text" };
// @ts-ignore
import iconStreamSettings from "@assets/svg/stream-settings.svg" with { type: "text" };
// @ts-ignore
import iconStreamStats from "@assets/svg/stream-stats.svg" with { type: "text" };
// @ts-ignore
import iconTrash from "@assets/svg/trash.svg" with { type: "text" };