ffmpeg-explorer/vite.config.js

20 lines
422 B
JavaScript
Raw Normal View History

2023-08-28 11:31:32 -04:00
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
2023-08-18 17:23:56 -04:00
// https://vitejs.dev/config/
export default defineConfig({
2023-08-28 11:31:32 -04:00
plugins: [svelte()],
test: {
include: ["tests/**/*.js"],
},
2023-08-19 13:01:37 -04:00
optimizeDeps: {
2023-08-28 11:31:32 -04:00
exclude: ["@ffmpeg/ffmpeg", "@ffmpeg/util"],
},
2023-08-19 13:01:37 -04:00
server: {
2023-08-28 11:31:32 -04:00
headers: {
"Cross-Origin-Opener-Policy": "same-origin",
"Cross-Origin-Embedder-Policy": "require-corp",
},
},
});