From d0a0f25523e3331645f18943fc9119c78bc93950 Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Fri, 5 Apr 2024 21:23:30 +0800 Subject: [PATCH] fix(plugin-comment): ensure comment is not externalize in ssr, close #99 --- plugins/plugin-comment/src/node/commentPlugin.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/plugin-comment/src/node/commentPlugin.ts b/plugins/plugin-comment/src/node/commentPlugin.ts index 692b874248..2a6bfb7569 100644 --- a/plugins/plugin-comment/src/node/commentPlugin.ts +++ b/plugins/plugin-comment/src/node/commentPlugin.ts @@ -95,7 +95,10 @@ export const commentPlugin = } } - addViteSsrNoExternal(bundlerOptions, app, '@vuepress/helper') + addViteSsrNoExternal(bundlerOptions, app, [ + '@vuepress/helper', + '@vuepress/plugin-comment', + ]) }, clientConfigFile: `${CLIENT_FOLDER}config.js`,