From 93246cdbd1b9f0c170f4e5db551f11ced03bdfce Mon Sep 17 00:00:00 2001 From: Ryan Skinner Date: Mon, 4 Nov 2024 11:14:23 -0500 Subject: [PATCH] chore: typo (#825) --- packages/shiki/scripts/prepare/langs.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/shiki/scripts/prepare/langs.ts b/packages/shiki/scripts/prepare/langs.ts index 33d89e99..b6b86067 100644 --- a/packages/shiki/scripts/prepare/langs.ts +++ b/packages/shiki/scripts/prepare/langs.ts @@ -31,7 +31,7 @@ const LANGS_LAZY_EMBEDDED_PARTIAL = [ /** * Languages to be excluded from SFC langs */ -const STANDALONG_LANGS_EMBEDDED = [ +const STANDALONE_LANGS_EMBEDDED = [ 'pug', 'stylus', 'sass', @@ -85,8 +85,8 @@ export async function prepareLangs() { json.embeddedLangs = includes } else if (LANGS_LAZY_EMBEDDED_PARTIAL.includes(lang.name)) { - json.embeddedLangsLazy = (json.embeddedLangs || []).filter(i => STANDALONG_LANGS_EMBEDDED.includes(i)) || [] - json.embeddedLangs = (json.embeddedLangs || []).filter(i => !STANDALONG_LANGS_EMBEDDED.includes(i)) || [] + json.embeddedLangsLazy = (json.embeddedLangs || []).filter(i => STANDALONE_LANGS_EMBEDDED.includes(i)) || [] + json.embeddedLangs = (json.embeddedLangs || []).filter(i => !STANDALONE_LANGS_EMBEDDED.includes(i)) || [] } const deps: string[] = json.embeddedLangs || []