Files
luminance/vite.config.ts
T

24 lines
490 B
TypeScript

import react from "@vitejs/plugin-react";
import * as path from "path";
import { defineConfig } from "vite";
import topLevelAwait from "vite-plugin-top-level-await";
import wasm from "vite-plugin-wasm";
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), wasm(), topLevelAwait()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
port: 5173,
},
test: {
environment: "jsdom",
globals: true,
},
});