Skip to content

Commit

Permalink
chore: use astro language alias
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Dec 4, 2024
1 parent cc15222 commit 30ef052
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import rehypeSlug from "rehype-slug";
import { searchForWorkspaceRoot } from "vite";
import { version as biomeVersion } from "./node_modules/@biomejs/wasm-web/package.json";
import { version as prettierVersion } from "./node_modules/prettier/package.json";
import { bundledLanguages } from "./node_modules/shiki";
import { rehypeAutolink } from "./plugins/rehype-autolink";

const site = "https://biomejs.dev";
Expand Down Expand Up @@ -439,14 +438,10 @@ export default defineConfig({
syntaxHighlight: "shiki",
rehypePlugins: [rehypeSlug, ...rehypeAutolink()],
shikiConfig: {
langs: [
// @ts-expect-error
{
...(await bundledLanguages.javascript()).default[0],
scopeName: "source.cjs",
aliases: ["cjs"],
},
],
langAlias: {
cjs: "javascript",
grit: "txt",
},
},
},

Expand Down

0 comments on commit 30ef052

Please sign in to comment.