Skip to content

v1.0.3: fix: move import.meta.glob out of shared into packages/ui

Choose a tag to compare

@DaanMichielsen DaanMichielsen released this 11 May 12:48
· 130 commits to master since this release
The shared package barrel is imported by Next.js which uses webpack —
webpack cannot execute import.meta.glob() at runtime and fails with
'{}.glob is not a function'. Moving getMapImageUrl (and its Vite-specific
imageModules) to packages/ui/src/mapImages.ts keeps the glob calls
inside the Vite/electron-vite build graph only. All four callers updated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>