From 91e093a21dcaf5c38db706313cb7f767fd0afef4 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Mon, 25 Sep 2023 18:49:38 +0100 Subject: [PATCH] chore: purify --- src/utils/dependencies.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/dependencies.ts b/src/utils/dependencies.ts index aa4b7dbb2..193642b35 100644 --- a/src/utils/dependencies.ts +++ b/src/utils/dependencies.ts @@ -88,7 +88,7 @@ export const shikiOnigasmSrc = "https://unpkg.com/@vap/shiki@0.10.3/dist/onig.wa // @ts-expect-error export const getStegCloak = /* #__PURE__*/ makeLazy(() => import("https://unpkg.com/stegcloak-dist@1.0.0/index.js")); -export const getStylus = makeLazy(async () => { +export const getStylus = /* #__PURE__*/ makeLazy(async () => { const stylusScript = await fetch("https://unpkg.com/stylus-lang-bundle@0.58.1/dist/stylus-renderer.min.js").then(r => r.text()); // the stylus bundle doesn't have a header that checks for export conditions so we can just patch the script to // return the renderer itself @@ -96,7 +96,7 @@ export const getStylus = makeLazy(async () => { return Function(patchedScript)() as typeof StylusRenderer; }); -export const getLess = makeLazy(async () => { +export const getLess = /* #__PURE__*/ makeLazy(async () => { const lessScript = await fetch("https://unpkg.com/less@4.2.0/dist/less.min.js").then(r => r.text()); const module = { exports: {} }; Function("module", "exports", lessScript)(module, module.exports);