From 04c3b0b76b6782cc99d5eff471e117b0755e0ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Fri, 15 Sep 2023 15:55:42 +0900 Subject: [PATCH] chore: add `@ts-ignore` when accessing `legacy?.buildSsrCjsExternalHeuristics` (#255) --- packages/plugin-vue/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugin-vue/src/index.ts b/packages/plugin-vue/src/index.ts index fa7d92cf..2e83d6d9 100644 --- a/packages/plugin-vue/src/index.ts +++ b/packages/plugin-vue/src/index.ts @@ -167,6 +167,7 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin { __VUE_PROD_DEVTOOLS__: config.define?.__VUE_PROD_DEVTOOLS__ ?? false, }, ssr: { + // @ts-ignore -- config.legacy.buildSsrCjsExternalHeuristics will be removed in Vite 5 external: config.legacy?.buildSsrCjsExternalHeuristics ? ['vue', '@vue/server-renderer'] : [],