Open xiaolin opened 3 weeks ago
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?
react-image-gallery
To Reproduce\ Steps to reproduce the behavior:
Expected behavior\ It should work with ESM projects
Current workaround for ESM projects is to do the below.
import Gallery from 'react-image-gallery'; const ImageGallery = Gallery.default ? Gallery.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