Last 12 weeks · 0 commits
1 of 6 standards met
I was looking about for an easy way to check minified sizes on some es-after-5 code, and behold, there's a @Rich-Harris project for that! I wanted to try out svelte v3, so I ported this, and apart from being a little var-y in this case, it's really slick! The only weird-ish thing is not being able to observe a value to trigger some code. I tried to follow the RFCs, but I missed a bit there in the middle. Was there ever a proposal along the lines of ? That may be a bit too silly/magical, but it's a fairly common pattern for observers in lots of my code. You could even go crazy and allow for old values to be collected in a second param and subscriptions handled by destructure on the first. But again, that may peg the silly scale. I also added KiB outputs for plain text and gzip at level 6 for both input and output.
Repository: Rich-Harris/terser-playground. Description: A playground for seeing how Terser minifies JavaScript Stars: 14, Forks: 2. Primary language: HTML. Languages: HTML (47.9%), JavaScript (31%), CSS (21.1%). Homepage: https://terser-playground.surge.sh/ Open PRs: 1, open issues: 1. Last activity: 5y ago. Community health: 28%. Top contributors: Rich-Harris, evs-chris.
eg https://github.com/beatgammit/gzip-js