import path from "path"; import { defineConfig } from 'vite' import rootConfig from './vite.config.js' // defineWorkspace provides a nice type hinting DX export default defineConfig((configEnv) => { const config = rootConfig(configEnv); config.build = { lib: { entry: path.resolve(__dirname, "./src/components/index.js"), name: "MapintegratedVuer", fileName: "mapintegratedvuer", }, rollupOptions: { external: ["vue", "pinia", "@abi-software/plotvuer", "@abi-software/simulationvuer"], output: { globals: { vue: "Vue", pinia: "pinia", "@abi-software/simulationvuer": "simulationvuer", "@abi-software/plotvuer": "plotvuer", }, }, }, }; return config; })