The "export defer" TC39 proposal aims to introduce a similar optimization *at the language level*, so that you can rely on it in all the tools and environments that you might run your code with.
Just because you need one thing from a module, you shouldn't pay the cost of all the others!
Contribute to tc39/proposal-deferred-reexports development by creating an account on GitHub.
Why did adding ONE component make your build drastically slower?
The answer is often: Barrel files.
Luckily, you can enable Lazy Barrel Optimization in @vite.dev 8 and @rolldown.rs do bring your build time back to normal.
Want to know more? Check the video & docs
rolldown.rs/in-depth/laz...