From beb1fb69a6cc7f207dd626ca729e371c8c03ee42 Mon Sep 17 00:00:00 2001
From: clark-cui <cuirongchuan@163.com>
Date: Wed, 10 Jan 2024 12:37:46 +0800
Subject: [PATCH] fix: two-slash build error

---
 .vitepress/config.ts                         | 5 +++++
 "posts/two-slash\346\265\213\350\257\225.md" | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.vitepress/config.ts b/.vitepress/config.ts
index a27c2dc..2da55a1 100644
--- a/.vitepress/config.ts
+++ b/.vitepress/config.ts
@@ -99,6 +99,11 @@ async function config() {
         md.use(mathjax3);
       },
     },
+    vite: {
+      ssr: {
+        noExternal: ["vitepress-plugin-twoslash"],
+      },
+    },
   };
 }
 export default config();
diff --git "a/posts/two-slash\346\265\213\350\257\225.md" "b/posts/two-slash\346\265\213\350\257\225.md"
index d1b0371..4b93c44 100644
--- "a/posts/two-slash\346\265\213\350\257\225.md"
+++ "b/posts/two-slash\346\265\213\350\257\225.md"
@@ -16,7 +16,7 @@ VitePress provides [a few options for customizing Shikiji](https://github.com/vu
 
 ### TwoSlash
 
-To enable [TypeScript TwoSlash](/packages/twoslash) (type hover on code snippets) in VitePress, we provide a VitePress plugin for easy setup. Pre-styled, with [Floating Vue](https://floating-vue.starpad.dev/) to display the type information out side of the code container.
+To enable TypeScript TwoSlash(type hover on code snippets) in VitePress, we provide a VitePress plugin for easy setup. Pre-styled, with [Floating Vue](https://floating-vue.starpad.dev/) to display the type information out side of the code container.
 
 ```bash
 npm i -D vitepress-plugin-twoslash