Files
vue-tui/examples/basic-jsx/vite.config.ts
T

11 lines
462 B
TypeScript
Raw Normal View History

2026-05-24 20:48:52 +08:00
import { defineConfig } from "vite";
import vueJsx from "@vitejs/plugin-vue-jsx";
import { vueTui } from "@vue-tui/vite";
2026-05-24 20:48:52 +08:00
// This example's entry is a .tsx file, so the JSX transform (@vitejs/plugin-vue-jsx)
// is added alongside vueTui(); the `entry` option points both the dev launcher and
// the production build at src/main.tsx instead of the default src/main.ts.
2026-05-24 20:48:52 +08:00
export default defineConfig({
plugins: [vueTui({ entry: "/src/main.tsx" }), vueJsx()],
2026-05-24 20:48:52 +08:00
});