mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 02:07:03 +02:00
chore(ocr): externalize tesseract.js completely
This commit is contained in:
@@ -14,8 +14,11 @@ async function main() {
|
||||
build.copyNodeModules([ "better-sqlite3", "bindings", "file-uri-to-path" ]);
|
||||
|
||||
// Tesseract.js worker runs in a separate worker_thread and needs its
|
||||
// source files (+ WASM core) on disk — they cannot be bundled.
|
||||
build.copyNodeModules([ "tesseract.js", "tesseract.js-core", "wasm-feature-detect" ]);
|
||||
// source files (+ WASM core + transitive deps) on disk — they cannot be bundled.
|
||||
build.copyNodeModules([
|
||||
"tesseract.js", "tesseract.js-core", "wasm-feature-detect",
|
||||
"regenerator-runtime", "is-url", "bmp-js"
|
||||
]);
|
||||
build.copy("/node_modules/ckeditor5/dist/ckeditor5-content.css", "ckeditor5-content.css");
|
||||
|
||||
build.buildFrontend();
|
||||
|
||||
Reference in New Issue
Block a user