You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xiaolin
changed the title
Create ESM package for ESM related projects (Astro, Svelte, Vite, and newer version of Next.js)
Create ESM bundle for ESM related projects (Astro, Svelte, Vite, and newer version of Next.js)
Aug 22, 2024
Is this the reason why in Vite I'm getting something like this? (It was supposed to show just one image, i.e. the gallery; instead, the page gets huge overflow by those extra images)
I'm using Vite and TypeScript, and using
import Gallery from 'react-image-gallery'
const ImageGallery = (Gallery as any).default ? (Gallery as any).default : Gallery
Describe the bug
The current webpack bundle only builds UMD which is causing issues with projects in ESM environment.
Image Gallery Version
What version of
react-image-gallery
are you using?To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should work with ESM projects
The text was updated successfully, but these errors were encountered: