Skip to content

Commit

Permalink
chore: add @ts-ignore when accessing `legacy?.buildSsrCjsExternalHe…
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Nov 16, 2023
1 parent ee53249 commit 1ee7db7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ export default createUnplugin<Options | undefined, false>(
config.define?.__VUE_PROD_DEVTOOLS__ ?? false,
},
ssr: {
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
// @ts-ignore -- config.legacy.buildSsrCjsExternalHeuristics will be removed in Vite 5
external: config.legacy?.buildSsrCjsExternalHeuristics
? ['vue', '@vue/server-renderer']
: [],
Expand Down

0 comments on commit 1ee7db7

Please sign in to comment.