VoidZero @voidzero.dev · Feb 3

🚀 Lazy Barrel Optimization in Rolldown Barrel files, files that re-export from other modules, are common in modern JavaScript projects but a nightmare for your build time. Rolldown now has Lazy Barrel Optimization to fix this. Here's how it works 🧵

86 likes 2 replies

?

Replies

VoidZero · Feb 3

You often do not use all functions or components from a library, but they are all exported from a single barrel file. ```js // some-lib/index.js export { a } from './a'; export { b } from './b'; // more exports here [...] // main.js import { a } from 'some-lib'; ```

@amanmahajan.bsky.social · Feb 4

Nice! Can this reduce import time in Vitest?