ndubien · @ndubien
77 followers · 76 posts · Server fosstodon.org

As supporting both and can be wrongly done in a thousand ways, I published why and how we achieved that on fast-check.

This article is a follow-up of issues reported via from @bluwy and fixed thank to @AndaristRake. As making the package right was not an easy game at first glance, I thought that a how-we-do article could help other .

fast-check.dev/blog/2023/09/04

#CommonJS #esmodules #javascript #opensource #publint #maintainers

Last updated 1 year ago

I think that there's a backlash coming; we've been for so long and dealing with all the complications that arise from it, but now we have , , and . Smaller files that change less often are actually better now! The is about to /#unpack!

#unbundle #web #cdn #edge #http3 #esmodules #bundling

Last updated 2 years ago

Doug Parker · @develwithoutacause
203 followers · 681 posts · Server techhub.social

Playing with in today and had some fun.

#esmodules #node

Last updated 2 years ago

There are honest reasons that people started using and still use ; I lived through Angular, and Backbone don't try to tell me there weren't reasons!

I still think we should re-evaluate those reasons, because things have changed; we have now, etc.

I don't care about web performance, I just want to build websites with a team of people and not have a bunch of indeterminate UI behavior. React delivered the hell out of that, can the post-React stack?

#shadowdom #webcomponents #esmodules #reactjs

Last updated 2 years ago

Doug Parker · @develwithoutacause
180 followers · 413 posts · Server techhub.social

What could we do if the spec supported defining multiple in the same file? I wonder if that would allow runtime linking of chunked in more flexible ways than the format can currently support? I'm imagining a syntax like:

```
// File: /user.js

// No need to request /logger.js, just
// inline it the first time it's needed.
module '/logger.js' {
export function log() { }
}

// Define `/user.js` module.
import { log } from '/logger.js';
function logUser() { }
```

```
// File: /analytics.js

// Can reuse '/logger.js' without having
// to download it separately.
import { log } from '/logger.js';
function collect() { }
```

This way servers could trivially move '/logger.js' between '/user.js' or '/analytics.js' at runtime per-user based on whatever chunk the user downloaded first.

github.com/tc39/proposal-modul seems to explore this, though everything is lexically bound so I don't see how you could support this particular use case. Maybe I'm missing something?

#web #esmodules #javascript

Last updated 2 years ago

Thomas Steiner :chrome: · @tomayac
410 followers · 5834 posts · Server toot.cafe
Oliver · @oliverturner
191 followers · 4082 posts · Server toot.cafe

RT @aganglada@twitter.com
Must see/read 🔥🔥🔥💯 twitter.com/Lady_Ada_King/stat

#esmodules #modernjs #amazing

Last updated 7 years ago