import { dirname, resolve } from "node:path"; import { fileURLToPath } from "node:url"; import { defineConfig, type Plugin } from "vite"; const __dirname = dirname(fileURLToPath(import.meta.url)); /** * Vite plugin that inlines extracted CSS into the JS entry chunk. * Injects a