Skip to content

Precache wasm for offline rich text parser#44

Merged
wsxiaolin merged 1 commit into
mainfrom
codex/fix-wasm-loading-error
May 11, 2026
Merged

Precache wasm for offline rich text parser#44
wsxiaolin merged 1 commit into
mainfrom
codex/fix-wasm-loading-error

Conversation

@wsxiaolin

Copy link
Copy Markdown
Member

Motivation

  • Fix the runtime error where the rich-text parser's WASM could not be fetched offline by ensuring the .wasm asset is included in the PWA precache so the parser is available when the app is offline.

Description

  • Add .wasm to the VitePWA injectManifest.globPatterns in vite.config.ts and include a short comment explaining why the WASM must be precached.

Testing

  • Ran npm run build which completed successfully; verified the built service worker precache now references the wasm asset with rg -n "pltxt2htm.*wasm" dist/sw.js; and ran git diff --check which reported no problems.

Codex Task

@wsxiaolin wsxiaolin merged commit 14edb7a into main May 11, 2026
1 check passed
@wsxiaolin wsxiaolin deleted the codex/fix-wasm-loading-error branch May 11, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant