vite.js 498 B

1234567891011121314151617181920212223242526
  1. import solidPlugin from "vite-plugin-solid"
  2. import tailwindcss from "@tailwindcss/vite"
  3. import { fileURLToPath } from "url"
  4. /**
  5. * @type {import("vite").PluginOption}
  6. */
  7. export default [
  8. {
  9. name: "opencode-desktop:config",
  10. config() {
  11. return {
  12. resolve: {
  13. alias: {
  14. "@": fileURLToPath(new URL("./src", import.meta.url)),
  15. },
  16. },
  17. worker: {
  18. format: "es",
  19. },
  20. }
  21. },
  22. },
  23. tailwindcss(),
  24. solidPlugin(),
  25. ]