import { defineConfig } from "vite"; import solidPlugin from "vite-plugin-solid"; import { dirname, resolve } from "node:path"; import { fileURLToPath } from "node:url"; // import devtools from 'solid-devtools/vite'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); export default defineConfig({ plugins: [ /* Uncomment the following line to enable solid-devtools. For more info see https://github.com/thetarnav/solid-devtools/tree/main/packages/extension#readme */ // devtools(), solidPlugin(), ], server: { host: "127.0.0.1", port: 3000, }, build: { target: "esnext", }, resolve: { alias: { "@": resolve(__dirname, "./src"), }, }, });