How Rolldown Works: High-Performance Code Splitting with Bitset Logic

JavaScript scope hoisting is broken

Modern JavaScript bundlers commonly implement two optimizations: scope hoisting, and code splitting. In this post, I'll discuss how these are fundamentally at odds with each other.