D

webpack-to-rspack/handling-built-in-plugins-migrations

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation
  • Rspack has implemented most of webpack's built-in plugins, with the same names and configuration parameters, allowing for easy replacement.
  • Replace the the include package from webpack to rspack one.
  • Replaces the webpack object in the plugins array to rspack object.
  • Handles only for supported and partially supported built-in plugins. (as of 11th Oct 2024)

Before

ts

After

ts

Ready to contribute?

Build your own codemod and share it with the community.