chew/webcomponents/vite.lib.config.js

13 lines
308 B
JavaScript

import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
// https://vitejs.dev/config/
export default defineConfig({
build: {
lib: {
entry: './src/main.js',
name: 'GancioEvents'
}
},
plugins: [svelte({compilerOptions: { customElement: true }})]
})