mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-11 11:17:27 +00:00
183e8f6a72
It includes a consumer project which is simply a demo app. The sdk project includes the first version of the SDK, with a light React implementation. The first version lays down the foundations of the iframe sdk framework. The npm package logic is also already ready to be published.
36 lines
781 B
TypeScript
36 lines
781 B
TypeScript
import path, { resolve } from "path";
|
|
|
|
import react from "@vitejs/plugin-react-swc";
|
|
import { AliasOptions, defineConfig } from "vite";
|
|
import dts from "vite-plugin-dts";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
dts({ tsconfigPath: "./tsconfig.app.json", rollupTypes: true }),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "src"),
|
|
} as AliasOptions,
|
|
},
|
|
build: {
|
|
lib: {
|
|
entry: resolve(__dirname, "src/index.tsx"),
|
|
name: "visio-sdk",
|
|
fileName: "visio-sdk",
|
|
},
|
|
rollupOptions: {
|
|
external: ["react", "react-dom"],
|
|
output: {
|
|
globals: {
|
|
react: "React",
|
|
"react-dom": "ReactDOM",
|
|
},
|
|
},
|
|
},
|
|
copyPublicDir: false,
|
|
},
|
|
});
|