feat: add CHM (.chm) support via CHMate
Render Microsoft Compiled HTML Help files. CHMate (pure-JS, MIT) parses the ITSF container and LZX-decompresses topics; its hardened renderTopic sanitizes each topic, inlines resources as blob: URLs and adds a strict CSP. The new CHMRenderer shows topics in a sandboxed iframe (no allow-scripts), wires internal (data-chm-href) and external (confirm + new tab) link navigation, and builds the .hhc table of contents into the sidebar. - New src/renderers/chm-renderer.js; wired into EXT_MAP + RENDERER_LOADERS, dropzone pill + toolbar badge (#006064), file-picker accept list - chmate pinned as a git dep; `chmate/render` exposed via a Vite resolve alias (CHMate's package exports only "."), inherited by the embed-app build - README / CREDITS / EMBEDDING updated (chmate is the 3rd git-dep engine) - Also: re-fit the page when the viewer area resizes — a ResizeObserver on #viewerContainer re-applies the fit-to-width/height/page scale, so opening the sidebar (or resizing the window) no longer leaves the page clipped at its old scale. Benefits every renderer, not just CHM. - /simplify applied: merged duplicate MHTML/CHM iframe CSS, dropped a dead field + an inert TOC wrapper div, replaced a parallel Map with data-target. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,7 @@ dependencies** in anything that ships.
|
||||
| [libarchive.js](https://github.com/nika-begiashvili/libarchivejs) | MIT (bundled libarchive = BSD) | CBR/CBT (RAR/TAR) via WASM |
|
||||
| [foliate-js](https://github.com/johnfactotum/foliate-js) | MIT | EPUB/MOBI/AZW3/FB2 |
|
||||
| [mhtml-to-html](https://github.com/gildas-lormeau/mhtml-to-html) | MIT | MHTML/`.mht` web archives → HTML |
|
||||
| [CHMate](https://github.com/Alpaq92/CHMate) | MIT | CHM (`.chm`) reading + rendering — pure-JS ITSF container + LZX, no WASM |
|
||||
| [UTIF.js](https://github.com/photopea/UTIF.js) | MIT | TIFF images |
|
||||
| [exifr](https://github.com/MikeKovarik/exifr) | MIT | EXIF/GPS metadata |
|
||||
| [Vite](https://github.com/vitejs/vite) | MIT | build tooling |
|
||||
|
||||
+1
-1
@@ -148,5 +148,5 @@ theme + inline `style` attributes). No `'unsafe-eval'` is required.
|
||||
- **Formats:** PDF, DjVu, ODF (ODT/ODS/ODP/ODG), RTF, DOC, DOCX, PPTX,
|
||||
XLSX/XLS, CSV/TSV, Markdown, source code, images (+TIFF/EXIF),
|
||||
comic archives (CBZ/CBR/CBT), e-books (EPUB/MOBI/AZW3/FB2),
|
||||
web archives (MHTML), plain text.
|
||||
web archives (MHTML), Compiled HTML Help (CHM), plain text.
|
||||
- See [CREDITS.md](CREDITS.md) — every bundled engine is permissively licensed.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# ReaderJS — Universal Document Viewer
|
||||
|
||||
A browser-based document viewer that renders **PDF, ODF, RTF, DOC, DOCX, Markdown, plain text, images, comic-book archives, e-books (EPUB/MOBI), and web archives (MHTML)** natively in the browser — no server, no upload, no conversion. Everything runs client-side; your files never leave your machine.
|
||||
A browser-based document viewer that renders **PDF, ODF, RTF, DOC, DOCX, Markdown, plain text, images, comic-book archives, e-books (EPUB/MOBI), web archives (MHTML), and Compiled HTML Help (CHM)** natively in the browser — no server, no upload, no conversion. Everything runs client-side; your files never leave your machine.
|
||||
|
||||
To give it a try without installing anything, visit the [live demo](https://alpaq92.github.io/ReaderJS/).
|
||||
|
||||
@@ -28,6 +28,7 @@ To give it a try without installing anything, visit the [live demo](https://alpa
|
||||
| Comic Book Archive | `.cbz` `.cbr` `.cbt` | JSZip (CBZ) + libarchive.js (CBR/CBT) |
|
||||
| E-book | `.epub` `.mobi` `.azw3` `.fb2` | foliate-js |
|
||||
| Web archive (MHTML) | `.mht` `.mhtml` | mhtml-to-html |
|
||||
| Compiled HTML Help | `.chm` | CHMate |
|
||||
|
||||
## Features
|
||||
|
||||
@@ -81,6 +82,7 @@ ReaderJS is built on these open-source libraries:
|
||||
| **[libarchive.js](https://github.com/nika-begiashvili/libarchivejs)** | Nika Begiashvili | CBR/CBT (RAR/TAR) extraction via a WASM build of libarchive — uses libarchive's own BSD-licensed RAR decoder, no UnRAR code |
|
||||
| **[foliate-js](https://github.com/johnfactotum/foliate-js)** | John Factotum | EPUB / MOBI / KF8 (AZW3) / FB2 parsing and paginated rendering |
|
||||
| **[mhtml-to-html](https://github.com/gildas-lormeau/mhtml-to-html)** | Gildas Lormeau | MHTML (`.mht` / `.mhtml`) web archives → one self-contained HTML document |
|
||||
| **[CHMate](https://github.com/Alpaq92/CHMate)** | Alpaq92 | Pure-JS Microsoft Compiled HTML Help (`.chm`) reader — ITSF container + LZX decompression + sanitizing topic renderer, no WASM |
|
||||
| **[UTIF.js](https://github.com/photopea/UTIF.js)** | Photopea | TIFF image decoding |
|
||||
| **[exifr](https://github.com/MikeKovarik/exifr)** | Mike Kovarik | EXIF / GPS metadata parsing for images |
|
||||
| **[Vite](https://github.com/vitejs/vite)** | Evan You / Vite contributors | Build tooling and development server |
|
||||
@@ -88,9 +90,10 @@ ReaderJS is built on these open-source libraries:
|
||||
| **[Open-Color](https://github.com/yeun/open-color)** | Heeyeun Jeong | Colour palette for the compare / diff view |
|
||||
|
||||
Every library above is a normal **npm dependency** — `npm install` is all you
|
||||
need, no git submodules. The two that aren't published to npm
|
||||
([foliate-js](https://github.com/johnfactotum/foliate-js) for e-books and
|
||||
[DejaView](https://github.com/Alpaq92/dejaview) for DjVu) are pinned to a commit
|
||||
need, no git submodules. The three that aren't published to npm
|
||||
([foliate-js](https://github.com/johnfactotum/foliate-js) for e-books,
|
||||
[DejaView](https://github.com/Alpaq92/dejaview) for DjVu, and
|
||||
[CHMate](https://github.com/Alpaq92/CHMate) for CHM) are pinned to commits
|
||||
as git dependencies in `package.json`. Every engine is permissively licensed
|
||||
(MIT / BSD / Apache-2.0 / 0BSD).
|
||||
|
||||
|
||||
+2
-1
@@ -120,7 +120,7 @@
|
||||
</svg>
|
||||
</label>
|
||||
<input id="fileInput" type="file"
|
||||
accept=".pdf,.djvu,.djv,.odt,.ods,.odp,.odg,.odm,.odf,.rtf,.doc,.docx,.mht,.mhtml,.pptx,.xlsx,.xls,.xlsm,.xlsb,.csv,.tsv,.js,.mjs,.cjs,.jsx,.ts,.tsx,.json,.jsonc,.xml,.html,.htm,.yaml,.yml,.css,.scss,.less,.py,.java,.c,.h,.cpp,.cc,.hpp,.cs,.go,.rs,.rb,.php,.sh,.bash,.sql,.kt,.swift,.toml,.ini,.diff,.md,.markdown,.txt,.text,.log,.png,.jpg,.jpeg,.gif,.webp,.avif,.bmp,.svg,.ico,.tif,.tiff,.cbz,.cbr,.cbt,.epub,.mobi,.azw3,.azw,.kf8,.fb2,.fbz"
|
||||
accept=".pdf,.djvu,.djv,.odt,.ods,.odp,.odg,.odm,.odf,.rtf,.doc,.docx,.mht,.mhtml,.chm,.pptx,.xlsx,.xls,.xlsm,.xlsb,.csv,.tsv,.js,.mjs,.cjs,.jsx,.ts,.tsx,.json,.jsonc,.xml,.html,.htm,.yaml,.yml,.css,.scss,.less,.py,.java,.c,.h,.cpp,.cc,.hpp,.cs,.go,.rs,.rb,.php,.sh,.bash,.sql,.kt,.swift,.toml,.ini,.diff,.md,.markdown,.txt,.text,.log,.png,.jpg,.jpeg,.gif,.webp,.avif,.bmp,.svg,.ico,.tif,.tiff,.cbz,.cbr,.cbt,.epub,.mobi,.azw3,.azw,.kf8,.fb2,.fbz"
|
||||
aria-label="Open document file" data-i18n-aria="aria.openFile" />
|
||||
|
||||
<button id="compareBtn" class="toolbar-btn" title="Compare two files…" data-i18n-title="compare.openTwo">
|
||||
@@ -174,6 +174,7 @@
|
||||
<span class="format-tag tag-doc">DOC</span>
|
||||
<span class="format-tag tag-docx">DOCX</span>
|
||||
<span class="format-tag tag-mhtml">MHTML</span>
|
||||
<span class="format-tag tag-chm">CHM</span>
|
||||
<span class="format-tag tag-pptx">PPTX</span>
|
||||
<span class="format-tag tag-xlsx">XLSX</span>
|
||||
<span class="format-tag tag-md">MD</span>
|
||||
|
||||
Generated
+13
@@ -9,6 +9,7 @@
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"chart.js": "^4.5.1",
|
||||
"chmate": "github:Alpaq92/CHMate#86b26bb8c33255de89db4fa68e610b9ac7cc286a",
|
||||
"dejaview": "github:Alpaq92/dejaview#ae7aed28a7e9f1ef9658d421471ffb66336ada09",
|
||||
"diff": "^9.0.0",
|
||||
"exifr": "^7.1.3",
|
||||
@@ -743,6 +744,18 @@
|
||||
"pnpm": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/chmate": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "git+ssh://git@github.com/Alpaq92/CHMate.git#86b26bb8c33255de89db4fa68e610b9ac7cc286a",
|
||||
"integrity": "sha512-tSrqUUHeDXTsIJ47qjDS70AuIzefHksC11h2zxTavkr1hYiEldruZzru82mLJHK+YREIc/Ypk1b2NsHfX4JCiQ==",
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"chmate": "cli.mjs"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/codepage": {
|
||||
"version": "1.15.0",
|
||||
"resolved": "https://registry.npmjs.org/codepage/-/codepage-1.15.0.tgz",
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"chart.js": "^4.5.1",
|
||||
"chmate": "github:Alpaq92/CHMate#86b26bb8c33255de89db4fa68e610b9ac7cc286a",
|
||||
"dejaview": "github:Alpaq92/dejaview#ae7aed28a7e9f1ef9658d421471ffb66336ada09",
|
||||
"diff": "^9.0.0",
|
||||
"exifr": "^7.1.3",
|
||||
|
||||
+15
@@ -21,6 +21,7 @@ const RENDERER_LOADERS = {
|
||||
code: () => import('./renderers/code-renderer.js').then(m => new m.CodeRenderer()),
|
||||
djvu: () => import('./renderers/djvu-renderer.js').then(m => new m.DjVuRenderer()),
|
||||
mhtml: () => import('./renderers/mhtml-renderer.js').then(m => new m.MHTMLRenderer()),
|
||||
chm: () => import('./renderers/chm-renderer.js').then(m => new m.CHMRenderer()),
|
||||
}
|
||||
|
||||
const CODE_EXTS = ['js','mjs','cjs','jsx','ts','tsx','json','jsonc','xml','html','htm',
|
||||
@@ -35,6 +36,7 @@ const EXT_MAP = {
|
||||
docx: 'docx',
|
||||
doc: 'doc',
|
||||
mht: 'mhtml', mhtml: 'mhtml',
|
||||
chm: 'chm',
|
||||
pptx: 'pptx',
|
||||
xlsx: 'xlsx', xls: 'xlsx', xlsm: 'xlsx', xlsb: 'xlsx',
|
||||
csv: 'csv', tsv: 'csv',
|
||||
@@ -176,6 +178,19 @@ export class DocumentViewer {
|
||||
document.getElementById('outerContainer').classList.remove('sidebar-open')
|
||||
})
|
||||
|
||||
// Re-fit the page whenever the viewer area resizes — toggling the sidebar or
|
||||
// resizing the window changes the available width, and the fit-to-width /
|
||||
// -height / -page modes must track it (otherwise the page stays at its old
|
||||
// scale and clips). Manual zoom levels are left untouched.
|
||||
if ('ResizeObserver' in window) {
|
||||
const FIT_OPTIONS = new Set(['auto', 'page-fit', 'page-width', 'page-height'])
|
||||
new ResizeObserver(() => {
|
||||
if (!this.activeRenderer) return
|
||||
const opt = document.getElementById('scaleSelect').value
|
||||
if (FIT_OPTIONS.has(opt)) this._applyScaleOption(opt)
|
||||
}).observe(document.getElementById('viewerContainer'))
|
||||
}
|
||||
|
||||
// Error bar
|
||||
document.getElementById('errorClose').addEventListener('click', () => {
|
||||
document.getElementById('errorBar').classList.add('hidden')
|
||||
|
||||
@@ -0,0 +1,161 @@
|
||||
import { BaseRenderer } from './base-renderer.js'
|
||||
|
||||
// CHM (.chm) — Microsoft Compiled HTML Help. CHMate parses the ITSF container
|
||||
// (LZX-decompressing topics) and turns each topic into a sanitized, self-contained
|
||||
// HTML string. CHM is a legacy *and* an active malware vector, so every topic is
|
||||
// treated as hostile: rendered in a sandboxed iframe with no scripts, a strict
|
||||
// CSP, and all resources inlined as blob: URLs — nothing touches the network.
|
||||
|
||||
// CHMate's pure topic renderer, lazy-loaded on first open and shared by every
|
||||
// instance (it carries no per-document state).
|
||||
let renderTopic = null
|
||||
|
||||
export class CHMRenderer extends BaseRenderer {
|
||||
constructor() {
|
||||
super()
|
||||
this._reader = null
|
||||
this._blobs = null
|
||||
this._frame = null
|
||||
this._onFrameClick = this._onFrameClick.bind(this)
|
||||
}
|
||||
|
||||
async load(buffer, container, viewer) {
|
||||
await super.load(buffer, container, viewer)
|
||||
|
||||
const [{ ChmReader }, render] = await Promise.all([
|
||||
import('chmate'),
|
||||
import('chmate/render'),
|
||||
])
|
||||
renderTopic = render.renderTopic
|
||||
|
||||
const reader = ChmReader.open(buffer)
|
||||
this._reader = reader
|
||||
this._blobs = new render.BlobCache(reader)
|
||||
|
||||
container.innerHTML = ''
|
||||
const page = document.createElement('div')
|
||||
page.className = 'doc-page chm-page'
|
||||
page.dataset.page = 1
|
||||
|
||||
// sandbox WITHOUT allow-scripts: topic scripts can never run. allow-same-origin
|
||||
// only lets the host measure height and attach the link-navigation handler.
|
||||
const frame = document.createElement('iframe')
|
||||
frame.className = 'chm-frame'
|
||||
frame.sandbox = 'allow-same-origin'
|
||||
this._frame = frame
|
||||
page.appendChild(frame)
|
||||
container.appendChild(page)
|
||||
|
||||
this._buildContents(reader)
|
||||
|
||||
const start = reader.defaultTopic || reader.listFiles().find((p) => /\.html?$/i.test(p))
|
||||
if (start) {
|
||||
this._navigate(start)
|
||||
} else {
|
||||
frame.srcdoc = '<!DOCTYPE html><meta charset="utf-8"><body style="font:14px sans-serif;padding:24px;color:#555">This .chm has no displayable HTML topic.</body>'
|
||||
}
|
||||
|
||||
this.numPages = 1
|
||||
}
|
||||
|
||||
// Render a topic into the iframe and wire link navigation + height sizing.
|
||||
_navigate(target, frag = '') {
|
||||
const reader = this._reader
|
||||
if (!reader) return
|
||||
const hash = target.indexOf('#')
|
||||
if (hash >= 0) {
|
||||
frag = frag || target.slice(hash + 1)
|
||||
target = target.slice(0, hash)
|
||||
}
|
||||
if (!reader.hasFile(target)) return
|
||||
|
||||
const frame = this._frame
|
||||
frame.onload = () => {
|
||||
const doc = frame.contentDocument
|
||||
if (!doc) return
|
||||
frame.style.height = `${doc.documentElement.scrollHeight}px`
|
||||
doc.addEventListener('click', this._onFrameClick, true)
|
||||
if (frag) {
|
||||
const el = doc.getElementById(frag) || doc.querySelector(`a[name="${CSS.escape(frag)}"]`)
|
||||
if (el) el.scrollIntoView({ block: 'start' })
|
||||
}
|
||||
this._highlightContents(target)
|
||||
}
|
||||
frame.srcdoc = renderTopic(reader, target, this._blobs)
|
||||
}
|
||||
|
||||
// CHMate marks internal links with data-chm-href and external ones with
|
||||
// data-chm-ext (their real href is neutralised to "#"); the host drives both.
|
||||
_onFrameClick(e) {
|
||||
const a = e.target.closest?.('a')
|
||||
if (!a) return
|
||||
const internal = a.getAttribute('data-chm-href')
|
||||
const external = a.getAttribute('data-chm-ext')
|
||||
if (internal) {
|
||||
e.preventDefault()
|
||||
this._navigate(internal, a.getAttribute('data-chm-frag') || '')
|
||||
} else if (external) {
|
||||
e.preventDefault()
|
||||
if (confirm(`Open external link?\n\n${external}`)) window.open(external, '_blank', 'noopener')
|
||||
}
|
||||
}
|
||||
|
||||
// ── Table of contents (.hhc) in the sidebar ───────────────────────────────
|
||||
_buildContents(reader) {
|
||||
const box = document.getElementById('thumbsContent')
|
||||
if (!box) return
|
||||
const tree = reader.getContents()
|
||||
if (!tree?.length) return // leave buildsThumbnailsAsync falsy → "no thumbnails" placeholder
|
||||
this.buildsThumbnailsAsync = true // we fill the sidebar ourselves
|
||||
box.innerHTML = ''
|
||||
const root = document.createElement('div')
|
||||
root.className = 'chm-toc'
|
||||
this._renderNodes(reader, tree, root)
|
||||
box.appendChild(root)
|
||||
}
|
||||
|
||||
_renderNodes(reader, nodes, parent) {
|
||||
for (const node of nodes) {
|
||||
const row = document.createElement('div')
|
||||
row.className = 'chm-toc-row'
|
||||
row.textContent = node.name || '(untitled)'
|
||||
const target = this._nodeTarget(reader, node)
|
||||
if (target) {
|
||||
row.classList.add('chm-toc-link')
|
||||
row.dataset.target = target
|
||||
row.addEventListener('click', () => this._navigate(target))
|
||||
}
|
||||
parent.appendChild(row)
|
||||
if (node.children?.length) {
|
||||
const kids = document.createElement('div')
|
||||
kids.className = 'chm-toc-children'
|
||||
this._renderNodes(reader, node.children, kids)
|
||||
parent.appendChild(kids)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TOC "Local" paths are relative to the contents (.hhc) file's location.
|
||||
_nodeTarget(reader, node) {
|
||||
if (node.url || !node.local) return null
|
||||
const abs = reader.resolvePath(reader.contentsPath || '/', node.local).replace(/#.*$/, '')
|
||||
return reader.hasFile(abs) ? abs : null
|
||||
}
|
||||
|
||||
_highlightContents(path) {
|
||||
const box = document.getElementById('thumbsContent')
|
||||
if (!box) return
|
||||
box.querySelectorAll('.chm-toc-active').forEach((r) => r.classList.remove('chm-toc-active'))
|
||||
box.querySelectorAll(`.chm-toc-row[data-target="${CSS.escape(path)}"]`).forEach((r) => r.classList.add('chm-toc-active'))
|
||||
}
|
||||
|
||||
destroy() {
|
||||
this._blobs?.revokeAll()
|
||||
this._blobs = null
|
||||
this._reader = null
|
||||
this._frame = null
|
||||
const box = document.getElementById('thumbsContent')
|
||||
if (box) box.innerHTML = ''
|
||||
super.destroy()
|
||||
}
|
||||
}
|
||||
+13
-3
@@ -253,6 +253,7 @@ html, body {
|
||||
#formatBadge.badge-code { background: #546e7a; color: #fff; }
|
||||
#formatBadge.badge-djvu { background: #3949ab; color: #fff; }
|
||||
#formatBadge.badge-mhtml { background: #8e24aa; color: #fff; }
|
||||
#formatBadge.badge-chm { background: #006064; color: #fff; }
|
||||
|
||||
/* File input — hidden, triggered by label */
|
||||
#fileInput { display: none; }
|
||||
@@ -387,6 +388,7 @@ html, body {
|
||||
.tag-code { background: #546e7a; color: #fff; }
|
||||
.tag-djvu { background: #3949ab; color: #fff; }
|
||||
.tag-mhtml { background: #8e24aa; color: #fff; }
|
||||
.tag-chm { background: #006064; color: #fff; }
|
||||
|
||||
.powered-by {
|
||||
margin-top: 22px;
|
||||
@@ -637,9 +639,17 @@ html, body {
|
||||
.doc-page .docbox p { margin: 0; }
|
||||
.doc-page h3.sec { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #888; margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid #e0e0e0; }
|
||||
|
||||
/* ── MHTML web-archive page (sandboxed iframe) ──────────────────────────── */
|
||||
.doc-page.mhtml-page { padding: 0; overflow: visible; height: auto; }
|
||||
.mhtml-frame { display: block; width: 100%; border: 0; }
|
||||
/* ── MHTML / CHM: untrusted full-document HTML in a sandboxed iframe ─────── */
|
||||
.doc-page.mhtml-page, .doc-page.chm-page { padding: 0; overflow: visible; height: auto; }
|
||||
.mhtml-frame, .chm-frame { display: block; width: 100%; border: 0; }
|
||||
|
||||
/* CHM table-of-contents sidebar */
|
||||
.chm-toc { padding: 6px 0; font-size: 13px; }
|
||||
.chm-toc-children { margin-left: 11px; }
|
||||
.chm-toc-row { padding: 3px 10px; color: #c8c8d0; border-radius: 4px; line-height: 1.35; }
|
||||
.chm-toc-row.chm-toc-link { cursor: pointer; }
|
||||
.chm-toc-row.chm-toc-link:hover { background: rgba(255,255,255,.08); color: #fff; }
|
||||
.chm-toc-row.chm-toc-active { background: rgba(120,160,255,.22); color: #fff; }
|
||||
|
||||
/* ── Utilities ──────────────────────────────────────────────────────────── */
|
||||
.hidden { display: none !important; }
|
||||
|
||||
@@ -17,6 +17,16 @@ const stubFoliatePdf = {
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [stubFoliatePdf],
|
||||
resolve: {
|
||||
alias: {
|
||||
// CHMate only declares its reader (".") in package.json exports, which
|
||||
// blocks a bare `chmate/render` import. Alias the browser renderer
|
||||
// (renderTopic/BlobCache) straight to its file so the CHM renderer can
|
||||
// reuse CHMate's hardened sanitizer instead of reimplementing it.
|
||||
// TODO: drop this alias once CHMate adds "./render" to its package exports.
|
||||
'chmate/render': fileURLToPath(new URL('./node_modules/chmate/src/render.js', import.meta.url)),
|
||||
},
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: ['pdfjs-dist', 'mammoth'],
|
||||
// Don't esbuild-prebundle foliate-js: it's source-style ESM and its
|
||||
|
||||
Reference in New Issue
Block a user