Advertisement · 728 × 90

Posts by roman

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

1 year ago 1 0 0 0
Preview
ESM>CDN A fast, smart & global CDN for modern(es2015+) web development.

the approach was heavily inspired by esm.sh

1 year ago 0 0 0 0

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

1 year ago 1 0 1 0

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

1 year ago 1 0 1 0

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

1 year ago 1 0 1 0

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

1 year ago 2 0 1 0

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

1 year ago 0 0 1 0

you don’t if you don’t want to suffer upgrading

1 year ago 0 0 1 0

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

1 year ago 3 0 0 0

not using automatic formatting tools

1 year ago 0 0 0 0
Advertisement

they would still have to process a bunch of unnecessary stuff

1 year ago 0 0 0 0

no. it will not be okay because bundles will still have to process everything, especially in dev mode

1 year ago 3 0 1 0

if you put a barrel file with hundreds of imports in your library im uninstalling it

1 year ago 0 0 0 0

couldn’t migrate so now i have biome.jsonc

1 year ago 0 0 1 0

i have like 3 alternative providers and a dozen of protocols to click every time something breaks

1 year ago 3 0 1 0

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

1 year ago 4 0 0 0

this survey being 50% ai and zero percent firefox tells me everything about current state of mozilla

1 year ago 7 0 0 0

nah, you can have fun with sveltekit though

1 year ago 1 0 0 0