1
0
Fork 0
mirror of synced 2024-07-01 20:41:03 +12:00
budibase/packages/bbui/vite.config.js
2021-04-01 21:05:18 +01:00

23 lines
459 B
JavaScript

import svelte from "@sveltejs/vite-plugin-svelte"
export default ({ mode }) => {
const isProduction = mode === "production"
return {
build: {
lib: {
entry: "src/index.js",
name: "bbui",
formats: ["es"],
},
minify: isProduction,
},
plugins: [svelte()],
resolve: {
dedupe: ["svelte", "svelte/internal"],
},
rollupOptions: {
external: ["svelte", "svelte/internal"],
},
}
}