refactor(benchmark): use react-router instead of just vite

This commit is contained in:
2025-07-14 21:39:50 +02:00
parent f52f7312a4
commit 9d175e31e8
13 changed files with 781 additions and 170 deletions

View File

@@ -1,18 +1,12 @@
import { defineConfig, type PluginOption } from "vite";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import { reactRouter } from "@react-router/dev/vite";
import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";
const plugins: () => Array<PluginOption> = () => [
react(),
wasm(),
topLevelAwait(),
];
// https://vite.dev/config/
export default defineConfig({
plugins: plugins(),
plugins: [reactRouter(), wasm(), topLevelAwait()],
worker: {
plugins,
plugins: () => [wasm(), topLevelAwait()],
},
});