From 085492214ace272a4ed12d04e9bc801bfd4c5d53 Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Sun, 13 Jul 2025 22:00:55 +0200 Subject: [PATCH] chore(benchmark): fix vite config --- pkgs/benchmark/vite.config.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/benchmark/vite.config.ts b/pkgs/benchmark/vite.config.ts index e4e26dc..3a4bb17 100644 --- a/pkgs/benchmark/vite.config.ts +++ b/pkgs/benchmark/vite.config.ts @@ -3,13 +3,16 @@ import react from "@vitejs/plugin-react"; import wasm from "vite-plugin-wasm"; import topLevelAwait from "vite-plugin-top-level-await"; -const plugins: Array = [react(), wasm(), topLevelAwait()]; +const plugins: () => Array = () => [ + react(), + wasm(), + topLevelAwait(), +]; // https://vite.dev/config/ export default defineConfig({ - plugins, + plugins: plugins(), worker: { - format: "es", - plugins: () => plugins, + plugins, }, });