CI Perf Lint

recommend-rspack-over-webpack

What This Rule Detects

This rule detects repositories using webpack 5.x that could benefit from migrating to rspack.

Why It Matters

rspack is a high-performance JavaScript bundler built with Rust that provides:

Suggested Action

Consider migrating from webpack to rspack. The migration typically involves:

  1. Install @rspack/core and @rspack/cli
  2. Update your build scripts to use rspack instead of webpack
  3. Adjust configuration syntax where needed (rspack config is very similar to webpack)

When This Rule Is Skipped

This rule will NOT recommend rspack if any of the following are detected in your webpack config:

These patterns indicate a higher migration risk that requires manual assessment.

Measurement

Compare build time, HMR speed, and output bundle size between webpack and rspack.

Compatibility Notes