roman
nulladdict.com
roman
@nulladdict.com
frontend developer. we(e)b enthusiast. music consumer.
patiently waiting for this to solve rollup’s memory usage during sourcemap generation with vite

from my understanding we could save ~1.5gb of ram for our build

i should probably try building our project with rolldown-based vite
February 8, 2025 at 1:39 PM
the approach was heavily inspired by esm.sh
ESM>CDN
A fast, smart & global CDN for modern(es2015+) web development.
esm.sh
December 17, 2024 at 6:43 PM
being able to `import { telemetry } from 'https://foo.bar/telemetry@1.2.3'` is pretty cool and surprisingly powerful

we'll probably use import maps in the future to make it even more seamless but its good enough for now
December 17, 2024 at 6:30 PM
if we really want to share something common we externalize the package during build and replace with a native esm import from cdn. that way widgets can reuse stuff but still upgrade independently

the entire thing is hand-rolled and probably makes sense only inside the company
December 17, 2024 at 6:27 PM
each widgets ships a small loader package. it accepts some reusable deps, configs and provides mount/unmount functions

it can also declare npm deps. if the consumer uses same version great, if not we get a duplicate and move on with our life
December 17, 2024 at 6:24 PM
we wanted to prioritize independence over bundle size. each "widget" is used in multiple apps and some apps have a lot of widgets. some apps are 10+ year b2b slop using react 16, some are 19 already, some use angular.

basically having a single dependency version for us is close to impossible
December 17, 2024 at 6:21 PM
we isolate so each fronted has its own copy of react/vue/angular. we deduplicate loading it from cdn. middle ground between excessive duplication and ease of upgrading
December 17, 2024 at 11:26 AM
you don’t if you don’t want to suffer upgrading
December 17, 2024 at 9:49 AM
renders should only happen in components that use the data

as long as the react team keeps ignoring state management story in react and keeps adding more memoisation performance will stay subpar
December 11, 2024 at 7:21 AM
not using automatic formatting tools
December 7, 2024 at 6:43 AM
they would still have to process a bunch of unnecessary stuff
December 6, 2024 at 1:29 PM
no. it will not be okay because bundles will still have to process everything, especially in dev mode
December 6, 2024 at 1:22 PM
if you put a barrel file with hundreds of imports in your library im uninstalling it
December 6, 2024 at 1:20 PM
couldn’t migrate so now i have biome.jsonc
November 26, 2024 at 11:27 AM
i have like 3 alternative providers and a dozen of protocols to click every time something breaks
November 19, 2024 at 4:27 PM
well makes sense since core bluesky experience is mostly read-only and not interaction heavy

update performance is still important though, b2b style apps suffer heavily from react state management and one of the best things we do is migrating all the state outside of react
November 18, 2024 at 7:24 AM
this survey being 50% ai and zero percent firefox tells me everything about current state of mozilla
November 16, 2024 at 2:20 PM
nah, you can have fun with sveltekit though
November 16, 2024 at 1:37 PM