| Pokey Rule | e2a8c2f | 2025-04-23 15:09:25 +0100 | [diff] [blame] | 1 | import { dirname, resolve } from "node:path"; |
| 2 | import { fileURLToPath } from "node:url"; | ||||
| 3 | import { hmrPlugin, presets } from "vite-plugin-web-components-hmr"; | ||||
| 4 | import { defineConfig } from "vite"; | ||||
| 5 | |||||
| 6 | const __dirname = dirname(fileURLToPath(import.meta.url)); | ||||
| 7 | |||||
| 8 | export default defineConfig({ | ||||
| 9 | plugins: [ | ||||
| 10 | hmrPlugin({ | ||||
| 11 | include: ["./src/**/*.ts"], | ||||
| 12 | presets: [presets.lit], | ||||
| 13 | }), | ||||
| 14 | ], | ||||
| 15 | }); | ||||