Skip to content

Commit

Permalink
hotfix: simplify callstack
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Sep 13, 2024
1 parent 59ca4ee commit ac3f5bb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions apps/site/shiki.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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<import('shiki').LanguageRegistration>} */
/**
* All languages needed within the Node.js website for syntax highlighting.
*
* @type {Array<import('shiki').LanguageRegistration>}
*/
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,
Expand Down

0 comments on commit ac3f5bb

Please sign in to comment.