Re:Show HN: A cool Drag-and-Drop implementation for Svelte
by chrismorgan on Tuesday January 12, 2021 @02:50PM
(#25752465)
That’s not no dependencies, it’s two direct dependencies, one of which is crossvent, which is 2.2kB of stuff that’s mostly not used (only around 0.6kB of it is used).
There are also a couple more transitive dependencies.
But the 9.8kB figure does include all the dependencies.
I actively hate spending bytes supporting IE (and especially such ancient versions as IE7), and if necessary maintain forks of any libraries I use to avoid doing so; so I tried ripping out IE support along with crossvent and a few obsolete and/or bad abstractions, and quickly got it down to 7kB minified, and I expect one so inclined could shrink it further. (The crossvent part can be done in two minutes, it’s that simple.)
I should really make a feature of this kind of thing on my blog, I enjoy doing it so much.
Re:Show HN: A cool Drag-and-Drop implementation for Svelte
by duhi88 on Tuesday January 12, 2021 @01:06PM
(#25750761)
Looks pretty solid to me. Good demos of some common edge-cases.
I wouldn't say "all" the major frameworks, though (just Angular[JS] and React).
[0] https://bevacqua.github.io/dragula/
[1] https://bundlephobia.com/[email protected]