Skip to content

🐞 Fix browser dictionary import - #237

Merged
JFWooten4 merged 1 commit into
mainfrom
merry-may
Nov 28, 2026
Merged

JFWooten4 merged 1 commit into
mainfrom
merry-may

Conversation

@JFWooten4

Copy link
Copy Markdown
Member

Problem

The unpacked PDF viewer fails to initialize because dehyphenate-copy.js imports an-array-of-english-words using a bare npm module specifier. Chromium cannot resolve that specifier directly from the source extension.

Change

Import the dictionary's JSON file through an explicit relative path under node_modules, consistent with the viewer's existing dependency-loading convention. Preserve the JSON import attribute and all dehyphenation logic. This also allows esbuild to resolve the dependency when packaging the extension.

Verification

  • Confirmed that the branch changes only the dictionary import.
  • Verified that the commit tree differs from its parent.
  • Browser smoke testing and the packaged build have not been run.

Write PR descriptions automatically.

Resolve the dehyphenation word list through its explicit JSON file so both unpacked source and bundled viewer builds can load it.

Co-authored-by: ChatGPT 6.2 <[email protected]>
@JFWooten4
JFWooten4 merged commit 25d3dfe into main Nov 28, 2026
14 checks passed
@JFWooten4
JFWooten4 deleted the merry-may branch November 28, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant