mirror of https://github.com/VERT-sh/VERT.git
Merge branch 'main' into nullptr/experimental-audio-to-video
This commit is contained in:
commit
5818ba6cdb
|
@ -1,11 +1,11 @@
|
|||
import { sveltekit } from "@sveltejs/kit/vite";
|
||||
import { defineConfig } from "vite";
|
||||
import { defineConfig, type PluginOption } from "vite";
|
||||
import { viteStaticCopy } from "vite-plugin-static-copy";
|
||||
import svg from "@poppanator/sveltekit-svg";
|
||||
import wasm from "vite-plugin-wasm";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
export default defineConfig(({ command }) => {
|
||||
const plugins: PluginOption[] = [
|
||||
sveltekit(),
|
||||
{
|
||||
name: "vips-request-middleware",
|
||||
|
@ -45,27 +45,35 @@ export default defineConfig({
|
|||
},
|
||||
],
|
||||
}),
|
||||
],
|
||||
worker: {
|
||||
plugins: () => [wasm()],
|
||||
format: "es",
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: [
|
||||
"wasm-vips",
|
||||
"@ffmpeg/core-mt",
|
||||
"@ffmpeg/ffmpeg",
|
||||
"@ffmpeg/util",
|
||||
],
|
||||
},
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
api: "modern",
|
||||
];
|
||||
|
||||
if (command === "serve") {
|
||||
plugins.unshift(wasm());
|
||||
}
|
||||
|
||||
return {
|
||||
plugins,
|
||||
worker: {
|
||||
plugins: () => [wasm()],
|
||||
format: "es",
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: [
|
||||
"wasm-vips",
|
||||
"@ffmpeg/core-mt",
|
||||
"@ffmpeg/ffmpeg",
|
||||
"@ffmpeg/util",
|
||||
],
|
||||
},
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
api: "modern",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
build: {
|
||||
target: "esnext",
|
||||
},
|
||||
build: {
|
||||
target: "esnext",
|
||||
},
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue