File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,17 @@ import shellSessionLanguage from 'shiki/langs/shellsession.mjs';
1010import typeScriptLanguage from 'shiki/langs/typescript.mjs' ;
1111import 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+ */
1418export 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 ,
You can’t perform that action at this time.
0 commit comments