mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-12-06 19:56:45 +10:30
fix(global search): CSS preload killed plugin load
This commit is contained in:
1 parent
1045d38f47
commit
3213d0ca28
29 files changed
+327
-62
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import { copyFileSync, mkdirSync } from "node:fs";
|
||||
import { dirname, join } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const transformersDist = join(
|
||||
root,
|
||||
"node_modules",
|
||||
"@huggingface",
|
||||
"transformers",
|
||||
"dist",
|
||||
);
|
||||
const outDir = join(root, "src", "public", "resources", "ort");
|
||||
|
||||
mkdirSync(outDir, { recursive: true });
|
||||
|
||||
const ortFiles = [
|
||||
"ort-wasm-simd-threaded.jsep.mjs",
|
||||
"ort-wasm-simd-threaded.jsep.wasm",
|
||||
];
|
||||
|
||||
for (const file of ortFiles) {
|
||||
copyFileSync(join(transformersDist, file), join(outDir, file));
|
||||
}
|
||||
Reference in new issue
Block a user