VoidZero @voidzero.dev · Jan 9

🔧 A new Rolldown chunk optimization just landed! When a module is both statically AND dynamically imported, Rolldown no longer creates an unnecessary extra chunk and inlines the import instead. Same module, one less network request. ✅ Available since the latest Rolldown beta.

71 likes 6 replies

?

Replies

Valentino Gagliardi · Jan 9

cool

Rob Palmer · Jan 9

Long shot: is there a comparative table of well-known chunking optimizations across bundlers? It would make gap assessment easier for folk considering switching bundler. And would act as a nice are-we-done-yet tracker.

VoidZero · Jan 9

Wanna see the code? Check out the PR github.com/rolldown/rol...

Tenorlab Dashboards · Jan 12

Great optimization

Rodrigo Dias · Jan 10

Fewer chunks always win. Nice optimization.

Remco Haszing · Jan 10

This is great, but why not pass lib_exports to Promise.resolve directly? That would save some bytes and a redundant promise. Promise.resolve(lib_exports).then((module) => …)