1- import { defaultHoverInfoProcessor , transformerTwoslash } from "@shikijs/vitepress-twoslash" ;
2- import { groupIconMdPlugin , groupIconVitePlugin } from "vitepress-plugin-group-icons" ;
1+ import {
2+ defaultHoverInfoProcessor ,
3+ transformerTwoslash ,
4+ } from "@shikijs/vitepress-twoslash" ;
5+ import {
6+ groupIconMdPlugin ,
7+ groupIconVitePlugin ,
8+ } from "vitepress-plugin-group-icons" ;
39import { defineConfig } from "vitepress" ;
410// import { ar, arSearch } from "./ar.mts";
511import { en , enSearch } from "./en.mts" ;
612// import { es, esSearch } from "./es.mts";
713import vite from "./vite.config.mts" ;
814import { zh , zhSearch } from "./zh.mts" ;
915
16+ const js = String . raw ;
1017// https://vitepress.dev/reference/site-config
1118export default defineConfig ( {
1219 title : "DwebBrowser" ,
@@ -19,7 +26,7 @@ export default defineConfig({
1926 dark : "vitesse-dark" ,
2027 } ,
2128 config ( md ) {
22- md . use ( groupIconMdPlugin )
29+ md . use ( groupIconMdPlugin ) ;
2330 } ,
2431 codeTransformers : [
2532 transformerTwoslash ( {
@@ -28,13 +35,13 @@ export default defineConfig({
2835 target : 99 ,
2936 moduleResolution : 99 ,
3037 module : 199 ,
31- }
38+ } ,
3239 } ,
3340 // errorRendering: 'hover',
3441 processHoverInfo ( info ) {
3542 return defaultHoverInfoProcessor ( info )
3643 // Remove shiki_core namespace
37- . replace ( / _ s h i k i j s _ c o r e \w * \. / g, '' )
44+ . replace ( / _ s h i k i j s _ c o r e \w * \. / g, "" ) ;
3845 } ,
3946 } ) ,
4047 ] ,
@@ -70,8 +77,8 @@ export default defineConfig({
7077 vue : {
7178 template : {
7279 compilerOptions : {
73- isCustomElement : ( tag ) => tag === "dweb-wallpaper"
74- }
75- }
80+ isCustomElement : ( tag ) => tag === "dweb-wallpaper" ,
81+ } ,
82+ } ,
7683 } ,
7784} ) ;
0 commit comments