dimsemenov / PhotoSwipe

JavaScript image gallery for mobile and desktop, modular, framework independent
http://photoswipe.com
MIT License
24.18k stars 3.31k forks source link

PhotoSwipe v5.2.7 javascript module could not be built in Skypack #1921

Open WTVader opened 2 years ago

WTVader commented 2 years ago

PhotoSwipe v5.2.7 javascript module could not be built in Skypack with the following error:

Bildschirmfoto 2022-05-23 um 23 47 44
dimsemenov commented 2 years ago

I'm not sure how to fix this. It seems SkyPack does not like the line "./photoswipe.css": "./dist/photoswipe.css", in package.json, but it's used as a shortcut to import CSS file:

import 'photoswipe/photoswipe.css';

If you know how to fix it without breaking this shortcut - please submit a PR.