Skip to content

Commit ac3f5bb

Browse files
committed
hotfix: simplify callstack
1 parent 59ca4ee commit ac3f5bb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

apps/site/shiki.config.mjs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ import shellSessionLanguage from 'shiki/langs/shellsession.mjs';
1010
import typeScriptLanguage from 'shiki/langs/typescript.mjs';
1111
import shikiNordTheme from 'shiki/themes/nord.mjs';
1212

13-
/** @type {Array<import('shiki').LanguageRegistration>} */
13+
/**
14+
* All languages needed within the Node.js website for syntax highlighting.
15+
*
16+
* @type {Array<import('shiki').LanguageRegistration>}
17+
*/
1418
export const LANGUAGES = [
1519
{
1620
...javaScriptLanguage[0],
17-
scopeName: 'source.js',
18-
aliases: ['mjs', 'cjs', 'js'],
19-
displayName: 'JavaScript',
21+
// We path the JavaScript language to include the CommonJS and ES Module aliases
22+
// that are commonly used (non-standard aliases) within our API docs and Blog posts
23+
aliases: javaScriptLanguage[0].aliases.concat('cjs', 'mjs'),
2024
},
2125
...jsonLanguage,
2226
...typeScriptLanguage,

0 commit comments

Comments
 (0)