mirror of
https://github.com/dsh-market/dsh-market.git
synced 2026-09-28 05:03:07 +08:00
client/client.js is committed AND published, so it must be byte-identical regardless of whose machine built it. tsdown names the CSS module's virtual chunk by absolute path, so the builder's checkout leaked into a region comment: main currently ships /Users/<me>/work/dsh-market/… to npm, and #99 arrived carrying D:\Github\… — every contributor's artifact diff churned on the path plus every hashed class name. normalize-client-banner now rewrites those virtual ids to a stable repo-relative form (Windows separators included, so a Windows build produces the same bytes) and fails the build if this builder's checkout path survives anywhere else. The scan is deliberately narrow: the bundle legitimately contains strings like 's:\' inside regexes, and a generic drive-letter check would false-positive. Spotted by @5102a while reviewing artifact diffs across PRs.