mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-05-18 20:08:19 +00:00
Prevents accidental overwrites of the working widget.js. Use 'npm run deploy' to explicitly build + copy to sidecar public/. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
23 lines
523 B
TypeScript
23 lines
523 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: './dist',
|
|
emptyOutDir: false,
|
|
minify: 'esbuild',
|
|
rollupOptions: {
|
|
output: {
|
|
inlineDynamicImports: true,
|
|
},
|
|
},
|
|
},
|
|
});
|