refactor(benchmark): use react-router instead of just vite
This commit is contained in:
@@ -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()],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user