jsdelivr / jsdelivr

A free, fast, and reliable Open Source CDN for npm, GitHub, Javascript, and ESM
https://www.jsdelivr.com
MIT License
5.67k stars 2.06k forks source link

esm.run fails to bundle `pixi-filters` but esm.sh works #18563

Open plurry opened 7 months ago

plurry commented 7 months ago

Description

v5.x of pixi-filters works fine with esm.run, but v6.x throws "Failed to bundle using Rollup" and asks you to open an issue here. I had opened an issue with Pixi (https://github.com/pixijs/filters/issues/451) at first, but I think it's a problem with jsDelivr because using esm.sh works fine.

Affected jsDelivr links

https://esm.run/pixi-filters@6 https://esm.sh/pixi-filters@6

Response headers

-

Information

-

Requisites

Additional content

The complicated bug report template didn't make me a bit more diligent and almost made me not bother reporting it at all.

plurry commented 7 months ago

Actually, it looks like even though pixi-filters on esm.sh bundles fine, it doesn't work when you try to use it.

And it turns out even the main Pixi module on both esm.run and esm.sh fail silently on pixi.js@8 even though pixi.js@7 is fine, so I'm back to blaming something in Pixi's ESM build config.

plurry commented 7 months ago

Actually Skypack works fine.

See https://github.com/pixijs/pixijs/issues/10446.

holman commented 2 months ago

@plurry did you ever find an approach that works for pixi and pixi-filters? Still seeing issues when trying to import them.

plurry commented 2 months ago

I just used Skypack instead of jsDelivr. That worked fine at the time, but I don't know about now. I don't think any CDN's 100% reliable, especially with ESM.