mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-12 01:33:36 +01:00
build: run the viewer and the text editor on one engine
Both vendored packages now come from a single build of the engine fork.
The viewer tarball ships without its own copy of pdfium.wasm and loads
the shared engine through EmbedPDF.init({ wasmUrl }), which drops it
from 7.1 MB to 2.1 MB and removes the second WebAssembly instance.
This commit is contained in:
1 parent
cba16fe750
commit
8dc7509ceb
9 files changed
+9
-66
No files matched your search
@@ -8,7 +8,7 @@ import { getEditorDisabledCategories } from '../utils/disabled-tools.js';
|
||||
import { editorFontFallback } from '../config/editor-fonts.js';
|
||||
|
||||
const embedPdfWasmUrl = new URL(
|
||||
'bentopdf-viewer/dist/pdfium.wasm',
|
||||
'bentopdf-pdfium/editcore.wasm',
|
||||
import.meta.url
|
||||
).href;
|
||||
|
||||
|
||||
Reference in new issue
Block a user