3 ms·
I particularly like the ESM examples in the README of this project for feeling like an interesting modern take for how some of the old 90s JS libraries used to
by WorldMaker 4y ago
I particularly like the ESM examples in the README of this project for feeling like an interesting modern take for how some of the old 90s JS libraries used to feel. Many of the 90s libraries often weren't distributed as JS files to add to a SCRIPT SRC but as SCRIPT blocks to copy and paste with big comments denoting things you might want to tweak, giving more of that feel of "ownership" of the JS and that "everything is tweakable", not just JS lives on remote CDNs and is imported all or nothing and nowhere near as tweakable. ESM feels like it starts to bring some of that back and head towards a best of both worlds: composable pieces imported from remote URLs and tweakable script blocks to copy, paste, and then make your own.
I'm probably biased from my position of already knowing ESM well at this point having pushed a lot of my own modern tech stacks towards it, but I'd like to imagine 90s teen me would have found ESM blocks exciting.