system HF Staff commited on
Commit
74dbd63
·
verified ·
1 Parent(s): 0969f66

Sync from felladrin/MiniSearch@714f22f (part 2)

Browse files
scripts/native-module-integrity.cjs CHANGED
@@ -31,7 +31,6 @@ const path = require("node:path");
31
  */
32
  const NATIVE_MODULES = [
33
  "@huggingface/tokenizers",
34
- "@moonshine-ai/moonshine-wasm",
35
  "@wllama/wllama",
36
  "hash-wasm",
37
  "onnxruntime-node",
 
31
  */
32
  const NATIVE_MODULES = [
33
  "@huggingface/tokenizers",
 
34
  "@wllama/wllama",
35
  "hash-wasm",
36
  "onnxruntime-node",
vite.config.ts CHANGED
@@ -11,7 +11,6 @@ import { cacheServerHook } from "./server/cacheServerHook.ts";
11
  import { compressionServerHook } from "./server/compressionServerHook.ts";
12
  import { configEndpointServerHook } from "./server/configEndpointServerHook.ts";
13
  import { crossOriginServerHook } from "./server/crossOriginServerHook.ts";
14
- import { dictationModelServerHook } from "./server/dictationModelServerHook.ts";
15
  import { internalApiEndpointServerHook } from "./server/internalApiEndpointServerHook.ts";
16
  import { pageContentEndpointServerHook } from "./server/pageContentEndpointServerHook.ts";
17
  import { rerankerServiceHook } from "./server/rerankerServiceHook.ts";
@@ -28,10 +27,8 @@ const __dirname = path.dirname(__filename);
28
  export default defineConfig((): UserConfig => {
29
  return {
30
  /**
31
- * Both workers are created with `type: "module"`, and the dictation model's
32
- * Emscripten glue uses a top-level await, which the default `iife` worker
33
- * format cannot represent. Module workers need Chrome 80, Safari 15 or
34
- * Firefox 114.
35
  */
36
  worker: { format: "es" as const },
37
  root: "./client",
@@ -88,11 +85,6 @@ export default defineConfig((): UserConfig => {
88
  configureServer: crossOriginServerHook,
89
  configurePreviewServer: crossOriginServerHook,
90
  },
91
- {
92
- name: "configure-server-dictation-models",
93
- configureServer: dictationModelServerHook,
94
- configurePreviewServer: dictationModelServerHook,
95
- },
96
  {
97
  name: "configure-server-config-endpoint",
98
  configureServer: configEndpointServerHook,
 
11
  import { compressionServerHook } from "./server/compressionServerHook.ts";
12
  import { configEndpointServerHook } from "./server/configEndpointServerHook.ts";
13
  import { crossOriginServerHook } from "./server/crossOriginServerHook.ts";
 
14
  import { internalApiEndpointServerHook } from "./server/internalApiEndpointServerHook.ts";
15
  import { pageContentEndpointServerHook } from "./server/pageContentEndpointServerHook.ts";
16
  import { rerankerServiceHook } from "./server/rerankerServiceHook.ts";
 
27
  export default defineConfig((): UserConfig => {
28
  return {
29
  /**
30
+ * The workers are created with `type: "module"`. Module workers need
31
+ * Chrome 80, Safari 15 or Firefox 114.
 
 
32
  */
33
  worker: { format: "es" as const },
34
  root: "./client",
 
85
  configureServer: crossOriginServerHook,
86
  configurePreviewServer: crossOriginServerHook,
87
  },
 
 
 
 
 
88
  {
89
  name: "configure-server-config-endpoint",
90
  configureServer: configEndpointServerHook,