From ac3f5bb44248c12c7952f06934db85c4f2a15d02 Mon Sep 17 00:00:00 2001 From: Claudio Wunder Date: Fri, 13 Sep 2024 20:38:09 +0200 Subject: [PATCH] hotfix: simplify callstack --- apps/site/shiki.config.mjs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/site/shiki.config.mjs b/apps/site/shiki.config.mjs index 54ef9d3e4485..d28ee4d3a8ec 100644 --- a/apps/site/shiki.config.mjs +++ b/apps/site/shiki.config.mjs @@ -10,13 +10,17 @@ import shellSessionLanguage from 'shiki/langs/shellsession.mjs'; import typeScriptLanguage from 'shiki/langs/typescript.mjs'; import shikiNordTheme from 'shiki/themes/nord.mjs'; -/** @type {Array} */ +/** + * All languages needed within the Node.js website for syntax highlighting. + * + * @type {Array} + */ export const LANGUAGES = [ { ...javaScriptLanguage[0], - scopeName: 'source.js', - aliases: ['mjs', 'cjs', 'js'], - displayName: 'JavaScript', + // We path the JavaScript language to include the CommonJS and ES Module aliases + // that are commonly used (non-standard aliases) within our API docs and Blog posts + aliases: javaScriptLanguage[0].aliases.concat('cjs', 'mjs'), }, ...jsonLanguage, ...typeScriptLanguage,