UNPKG

tessitura-seatmap

Version:

Tessitura-integrated seatmap components, built with React and Mantine (includes SYOS).

48 lines (46 loc) 1.16 kB
import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import { resolve } from "path"; import dts from "vite-plugin-dts"; // https://vite.dev/config/ export default defineConfig({ publicDir: false, plugins: [ react(), dts({ tsconfigPath: "./tsconfig.app.json", exclude: ["**/*.stories.tsx", "**/fixtures/**"], }), ], build: { lib: { entry: resolve(__dirname, "src/index.ts"), name: "index", fileName: "index", }, rollupOptions: { external: [ "@mantine/core", "@mantine/hooks", "@mantine/notifications", "@tabler/icons-react", "react", "react-dom", "react-svg-seatmap", "**/*.stories.tsx", "**/fixtures/**", ], output: { globals: { react: "React", "react-dom": "ReactDOM", "@mantine/core": "MantineCore", "@mantine/hooks": "MantineHooks", "@mantine/notifications": "MantineNotifications", "@tabler/icons-react": "TablerIconsReact", "react-svg-seatmap": "ReactSvgSeatmap", }, }, }, }, });