Use case
Framework
Owner
ChakraUI/V3/Remove Theme Tools
Theme tools has been removed, so this codemod transforms it, to use CSS color mix.
ChakraUI/V3/Update Chakra Provider
- Updates the ChakraProvider import from @chakra-ui/react
- Renames the theme prop to value to match the new system-based theming approach
ChakraUI/V3/Refactor Custom Theme
- Replaces extendTheme with createSystem and defaultConfig.
- Updates your theme object to fit the new structure required by Chakra UI.
I18n/23/Remove Options
Modification of the InterpolationOptions type. In version 23.0.0, the ns property within InterpolationOptions is now constrained to be of type Namespace instead of being a string or a readonly string[]. This change requires you to adjust your code accordingly.
Array To Set Conversion
A codemod which makes the array search operation more optimal and efficient, by converting the array into a set and executing the set's has method to find the desired element.
Minimatch To Named Imports
Example
This codemod turns default import statements for minimatch to named imports.
React Router/7/Update Imports
In v7 the react-router and react-router-dom packages are combined so this codemod import everything directly from "react-router" except for the RouterProvider exception.
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
Unwrap Wait For When It Has Find By
Example
This codemod turns X into Y. It also does Z. Note: this is a contrived example. Please modify it.
Replace Get By With Find My
Example
This codemod turns X into Y. It also does Z. Note: this is a contrived example. Please modify it.
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.