mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-04-11 18:08:16 +00:00
Widget builds from widget-src/ → public/widget.js Vite outDir updated to ../public .gitignore excludes node_modules Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
23 lines
526 B
TypeScript
23 lines
526 B
TypeScript
import { defineConfig } from 'vite';
|
|
import preact from '@preact/preset-vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [preact()],
|
|
build: {
|
|
lib: {
|
|
entry: 'src/main.tsx',
|
|
name: 'HelixWidget',
|
|
fileName: () => 'widget.js',
|
|
formats: ['iife'],
|
|
},
|
|
outDir: '../public',
|
|
emptyOutDir: false,
|
|
minify: 'esbuild',
|
|
rollupOptions: {
|
|
output: {
|
|
inlineDynamicImports: true,
|
|
},
|
|
},
|
|
},
|
|
});
|