Turbopack & Rspack

Prepack

Prepack is a tool that optimizes JavaScript code for improved performance.

About

Prepack is a partial evaluator designed to enhance the performance of JavaScript code by eliminating computations that can be performed at compile-time rather than at run-time. It replaces the global code of a JavaScript bundle with a streamlined sequence of assignments, reducing intermediate computations and object allocations. Currently in early development, it is intended for developers looking to optimize their JavaScript applications.

Resources & Links

Related Categories