Skip to content

armgit / VERT

Public Imported from GitHub
0

The next-generation file converter. Open source, fully local* and free forever.

Revert "fix: dev"

not-nullptr4e892adc1029
diff --git a/vite.config.ts b/vite.config.ts
index 0537844..814e547 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,11 +1,11 @@
import { sveltekit } from "@sveltejs/kit/vite";
-import { defineConfig, type PluginOption } from "vite";
+import { defineConfig } from "vite";
import { viteStaticCopy } from "vite-plugin-static-copy";
import svg from "@poppanator/sveltekit-svg";
import wasm from "vite-plugin-wasm";
-export default defineConfig(({ command }) => {
- const plugins: PluginOption[] = [
+export default defineConfig({
+ plugins: [
sveltekit(),
{
name: "vips-request-middleware",
@@ -45,35 +45,27 @@ export default defineConfig(({ command }) => {
},
],
}),
- ];
-
- 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",
- },
+ ],
+ 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",
+ },
});