Update vite.config.ts (#2987)

fix  codemirror error
pull/3002/head
webstar 2023-11-20 10:42:30 +08:00 committed by GitHub
parent 8034b14cda
commit 8f05668bcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
outDir: '../cmd/server/web',
minify: 'esbuild',
rollupOptions: {
external: ['codemirror'],
output: {
chunkFileNames: 'assets/js/[name]-[hash].js',
entryFileNames: 'assets/js/[name]-[hash].js',