Turbopack: DX Matters • Tobias Koppers • GOTO 2023

Discover TurboPack, a revolutionary new bundler that solves the issues with Webpack, featuring incremental computation, Rust-based parsing, and a modular architecture, designed to improve performance and scalability for developers.

Key takeaways
  • TurboPack is a new bundler that aims to solve the issues with Webpack, such as slow performance, complex configuration, and lack of incremental compilation.
  • The key innovation of TurboPack is its incremental computation engine, which allows it to build and rebuild only the parts of the application that have changed, reducing the overhead of serialization and deserialization.
  • TurboPack is designed to be a general-purpose bundler that can be used for both development and production builds, and it provides a flexible plug-in system that allows developers to customize its behavior.
  • The bundler is built on top of Rust and uses the SWC (Rust-based parser) to parse JavaScript code, which allows for faster compilation and better performance.
  • TurboPack has a modular architecture that consists of three layers: the incremental computation engine, the TurboPack engine, and the Rust-based SWC parser.
  • The incremental computation engine is responsible for computing the dependencies between modules and rebuilding only the parts of the application that have changed.
  • TurboPack provides a number of features that improve performance and scalability, including caching, remote caching, and incremental compilation.
  • The bundler is designed to be highly configurable and provides a number of options for customizing its behavior, including the ability to specify different optimization levels and caching strategies.
  • TurboPack is being developed by the Next.js team and is designed to work seamlessly with Next.js applications.
  • The bundler is still in development and is not yet ready for production use, but it is expected to be released in the near future.
  • TurboPack has the potential to revolutionize the way developers build and deploy web applications, and it is an exciting development in the world of web development.