Add optimizeDeps exclude

This commit is contained in:
Jerome Wu
2023-08-13 21:02:25 +08:00
parent 462aebd1a0
commit 030b03fab4
2 changed files with 6 additions and 0 deletions

View File

@@ -4,6 +4,9 @@ import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
optimizeDeps: {
exclude: ["@ffmpeg/ffmpeg", "@ffmpeg/util"],
},
server: {
headers: {
"Cross-Origin-Opener-Policy": "same-origin",