Skip to content

Pre-bundle qrcode dep for kiosk enrollment QR code#37

Open
OSPFNeighbour wants to merge 1 commit into
mainfrom
fix/kiosk-qrcode-optimize-deps
Open

Pre-bundle qrcode dep for kiosk enrollment QR code#37
OSPFNeighbour wants to merge 1 commit into
mainfrom
fix/kiosk-qrcode-optimize-deps

Conversation

@OSPFNeighbour

Copy link
Copy Markdown
Collaborator

KioskEnrollment.tsx imports qrcode but it wasn't in optimizeDeps.include, so Vite discovered it mid-request on first load of the enrollment screen and force-reloaded, aborting the import with "Importing a module script failed."

KioskEnrollment.tsx imports qrcode but it wasn't in optimizeDeps.include,
so Vite discovered it mid-request on first load of the enrollment screen
and force-reloaded, aborting the import with "Importing a module script
failed."

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@OSPFNeighbour OSPFNeighbour added the bug Something isn't working label Jul 12, 2026
@sdunster

Copy link
Copy Markdown
Member

I can't reproduce this issue. Not saying this code change isn't good for other reasons.

@sdunster

Copy link
Copy Markdown
Member

Sorry to be pedantic but I want to make sure we understand what this does. I believe exceljs was added to this list because it forces vite to bundle it separately from everything else so it can be neatly asynchronously imported on demand and it's ~1MB compiled doesn't slow down every page load - hence the use of the functional import. We could do the same for qrcode (ie load on demand) but it's pretty tiny (71kB).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants