2024-02-12 10:26:03 +00:00
|
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
import { resolve } from "path";
|
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import dts from "vite-plugin-dts";
|
2024-02-13 13:06:19 +00:00
|
|
|
import { alias } from "./vite.config";
|
2024-02-12 10:26:03 +00:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [react(), dts({ include: ["lib"] })],
|
2024-02-13 13:06:19 +00:00
|
|
|
resolve: {
|
|
|
|
alias,
|
|
|
|
},
|
2024-02-12 10:26:03 +00:00
|
|
|
build: {
|
|
|
|
lib: {
|
|
|
|
entry: resolve(__dirname, "lib/index.ts"),
|
|
|
|
formats: ["es"],
|
|
|
|
fileName: "index"
|
|
|
|
},
|
2024-02-12 11:01:32 +00:00
|
|
|
outDir: "dist-package",
|
2024-02-12 10:26:03 +00:00
|
|
|
copyPublicDir: false,
|
2024-04-12 13:16:11 +00:00
|
|
|
minify: false,
|
2024-02-12 10:26:03 +00:00
|
|
|
rollupOptions: {
|
|
|
|
external: [
|
2024-02-13 13:06:19 +00:00
|
|
|
"@emoji-mart/data",
|
|
|
|
"@emoji-mart/react",
|
2024-02-12 10:26:03 +00:00
|
|
|
"@emotion/react",
|
|
|
|
"@emotion/styled",
|
|
|
|
"@mui/icons-material",
|
|
|
|
"@mui/material",
|
2024-02-13 13:06:19 +00:00
|
|
|
"@mui/x-date-pickers",
|
2024-02-12 10:26:03 +00:00
|
|
|
"axios",
|
2024-02-13 13:06:19 +00:00
|
|
|
"emoji-mart",
|
|
|
|
"immer",
|
|
|
|
"moment",
|
|
|
|
"nanoid",
|
|
|
|
"notistack",
|
|
|
|
"react-dom",
|
|
|
|
"react-error-boundary",
|
2024-02-12 10:26:03 +00:00
|
|
|
"react-router-dom",
|
|
|
|
"react",
|
2024-02-13 13:06:19 +00:00
|
|
|
"swr",
|
|
|
|
"use-debounce",
|
2024-02-12 10:26:03 +00:00
|
|
|
"zustand",
|
|
|
|
],
|
|
|
|
},
|
2024-02-13 13:06:19 +00:00
|
|
|
},
|
2024-02-12 10:26:03 +00:00
|
|
|
});
|