import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";

export default defineConfig({
  plugins: [tailwindcss()],
  optimizeDeps: {
    // Force re-optimization on every restart
    force: true,
    // Ensure lit is pre-bundled correctly
    include: ["lit", "lit/decorators.js", "lit/directives/ref.js"],
  },
  server: {
    // Allow connections
    host: true,
  },
});
