FredKSchott / snowpack

ESM-powered frontend build tool. Instant, lightweight, unbundled development. ✌️
https://www.snowpack.dev
MIT License
19.48k stars 922 forks source link

Snowpack attempts to use invalid file names on Windows #2752

Open NfNitLoop opened 3 years ago

NfNitLoop commented 3 years ago

This is due to a bug which has been fixed in Rollup v2.40.0:

I believe if Snowpack updates to v2.40.0 this should solve the issue.

FredKSchott commented 3 years ago

Thanks for filing! I'd love to let v2.40.0 settle a bit before adopting, since we've been bitten in the past by immediately updating to the latest Rollup releases. Once #2707 is out, then lets prioritize this.

drwpow commented 3 years ago

Just checking in on this, and it still seems that the most recent version of Rollup (2.46.0) still has an issue with treeshaking as outlined here: https://github.com/snowpackjs/snowpack/pull/2572. Will hold off a bit longer in updating Rollup either until this is fixed in Rollup, or we have a better workaround.

drwpow commented 3 years ago

I believe this is the issue Rollup is tracking, among other treeshaking bugs: https://github.com/rollup/rollup/issues/3878

NfNitLoop commented 2 years ago

3853 might fix this. 🤞