Skip to content

Commit

Permalink
build: no bundle wasm (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobLinCool authored Dec 22, 2024
1 parent 784bf3c commit c9166ab
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import { viteStaticCopy } from 'vite-plugin-static-copy';

export default defineConfig({
plugins: [
sveltekit(),
viteStaticCopy({
targets: [
{
src: 'node_modules/@ricky0123/vad-web/dist/vad.worklet.bundle.min.js',
dest: './'
},
{
src: 'node_modules/@ricky0123/vad-web/dist/silero_vad_v5.onnx',
dest: './'
},
{
src: 'node_modules/onnxruntime-web/dist/*.wasm',
dest: './'
},
{
src: 'node_modules/onnxruntime-web/dist/ort-wasm-simd-threaded.mjs',
dest: './'
}
]
})
]
plugins: [sveltekit()]
});

0 comments on commit c9166ab

Please sign in to comment.