mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 13:48:34 +00:00
21 lines
566 B
JavaScript
21 lines
566 B
JavaScript
import { defineConfig } from 'vite';
|
|
import { dependencies } from './package.json';
|
|
import { resolve } from 'path';
|
|
import bundleAudioWorkletPlugin from 'vite-plugin-bundle-audioworklet';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [bundleAudioWorkletPlugin()],
|
|
build: {
|
|
lib: {
|
|
entry: resolve(__dirname, 'index.mjs'),
|
|
formats: ['es'],
|
|
fileName: (ext) => ({ es: 'index.mjs', cjs: 'index.cjs' })[ext],
|
|
},
|
|
rollupOptions: {
|
|
external: [...Object.keys(dependencies)],
|
|
},
|
|
target: 'esnext',
|
|
},
|
|
});
|