Add shared core-backed React and browser runtimes, continuous playback transitions, export previews and API documentation. Package the JavaScript export as a CDN-powered demo with the portable avatar definition.
18 lines
362 B
TypeScript
18 lines
362 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: fileURLToPath(new URL('./src/index.ts', import.meta.url)),
|
|
formats: ['es'],
|
|
fileName: 'index',
|
|
},
|
|
sourcemap: true,
|
|
rollupOptions: {
|
|
external: ['@bible-strong/avatar-core'],
|
|
},
|
|
},
|
|
})
|