Upload webapp/vite.config.ts with huggingface_hub
Browse files- webapp/vite.config.ts +13 -0
webapp/vite.config.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { defineConfig } from 'vite'
|
| 2 |
+
|
| 3 |
+
export default defineConfig({
|
| 4 |
+
resolve: {
|
| 5 |
+
conditions: ['onnxruntime-web-use-extern-wasm'],
|
| 6 |
+
},
|
| 7 |
+
optimizeDeps: {
|
| 8 |
+
exclude: ['onnxruntime-web'],
|
| 9 |
+
},
|
| 10 |
+
worker: {
|
| 11 |
+
format: 'es',
|
| 12 |
+
},
|
| 13 |
+
})
|