Use @ alias imports. Formatted files.

This commit is contained in:
Jay
2025-08-01 23:28:56 -04:00
parent 68c7486725
commit f639876604
20 changed files with 82 additions and 42 deletions
+12 -2
View File
@@ -1,11 +1,21 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import wasm from "vite-plugin-wasm";
import 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"),
"@components": path.resolve(__dirname, "./src/components"),
"@hooks": path.resolve(__dirname, "./src/hooks"),
"@providers": path.resolve(__dirname, "./src/providers"),
},
},
server: {
port: 5173,
},