Budibase is an open-source low-code platform for creating internal apps in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s 🚀
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
601 B

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