Use case
Framework
Owner
Webpack To Rspack/Migrate Terser Plugin
Change import and usage of from TerserPlugin to use included rspack.SwcJsMinimizerRspackPlugin.
Before
Webpack To Rspack/Migrate Html Plugin
Change import and usage of from html-webpack-tags-plugin to use includedhtml-rspack-tags-plugin.
Webpack To Rspack/Migrate Manifest Plugin
Change import from webpack-manifest-plugin torspack-manifest-plugin.
Webpack To Rspack/Replace Workbox Webpack Plugin To Aaroon/Workbox Rspack Plugin
Change import from workbox-webpack-plugin to @aaroon/workbox-rspack-plugin.
Webpack To Rspack/Replace Webpack Virtual Modules To Rspack Plugin Virtual Module
Change import from webpack-virtual-modules to rspack-plugin-virtual-module.
Webpack To Rspack/Community Csminimizer To Rspack Plugin
Change import and usage of from css-minimizer-webpack-plugin to use included rspack.LightningCssMinimizerRspackPlugin.
Before
Webpack To Rspack/Eslint Webpack Plugin To Eslint Rspack Plugin
Change import from eslint-webpack-plugin to eslint-rspack-plugin.
Before
Webpack To Rspack/Cssextractwebpackplugin Community To Included Plugin
Handles the migration of the CssExtractWebpackPlugin webpack plug-in into an included plugin in rspack.
Webpack To Rspack/Handling Built In Plugins Migrations
- 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)
Webpack To Rspack/Copywebpackplugin Community To Included Plugin
Handles the migration of the CopyWebpackPlugin web pack plug into an included plugin in rspack.
Webpack To Rspack/Migration Recipe
This recipe is a set of codemods that will help migrate from webpack to rspack.
Webpack To Rspack/Remove Tsconfigpathsplugin Paths Plugin
Handles the migration of the TsconfigPathsPlugin web pack plug into an included plugin in rspack.
Webpack To Rspack/Remove Raw Loader To Type Asset Source
Rspack implements Webpack 5's Asset Modules, using asset modules to replace raw-loader to 'asset/source' for better performance.
Webpack To Rspack/Remove Url Loader To Type Asset Inline
Rspack implements Webpack 5's Asset Modules, using asset modules to replace url-loader to 'asset/inline' for better performance.
Webpack To Rspack/Remove File Loader To Type Asset Resource
Rspack implements Webpack 5's Asset Modules, using asset modules to replace file-loader to 'asset/resource' for better performance.
Webpack To Rspack/Migrate Update Babel Loader To Swc Loader
Using builtin:swc-loader offers better performance compared to the babel-loader and the external swc-loader, as it avoids frequent communication between JavaScript and Rust.