One library-fetching method: everything is an npm dependency, no git
submodules. 'npm install' alone yields a working build.
- foliate-js (e-books) and dejaview (DjVu) aren't published to npm, so they
are pinned to a commit as git dependencies in package.json (were submodules).
Imports updated: epub-renderer -> 'foliate-js/view.js'; djvu-renderer worker
-> node_modules/dejaview.
- vite: optimizeDeps.exclude foliate-js — its stubbed/unused pdf.js uses
top-level await, which fails esbuild's es2020 prebundle; served as source it
goes through the existing stubFoliatePdf plugin.
- Removed the 5 reference-only submodules (pdf.js, docx, WebODF, rtf.js,
marked) — never imported; the runtime uses the npm packages.
- Dropped .gitmodules, submodules/, the monthly update-submodules workflow, the
deploy checkout's 'submodules: recursive', and the submodules:init script.
JSDoc's docToText.js stays (already committed under public/jsdoc).
- README: removed the Submodules table; clone no longer needs --recurse-submodules.
Verified: npm ci (fresh-clone sim) + build green; DjVu renders via the
node_modules dejaview worker (dev + build); app boots with foliate loaded.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>