Use case
Framework
Owner
React Router/6/Switch To Routes
This codemod updates
Switch
components toRoutes
in React Router, in line with React Router v6 and newer. It also adjusts the imports, replacingSwitch
withRoutes
inreact-router-dom
import statements.Minimatch To Named Imports
Example
This codemod turns default import statements for minimatch to named imports.
Webpack To Rspack/Migrate Html Plugin
Change import and usage of from html-webpack-tags-plugin to use includedhtml-rspack-tags-plugin.
Reka Ui/Import Update
The primary change in imports is replacing radix-vue with reka-ui.
Three/R168/ViewportBottomLeft To ViewportUV.FlipY()
This codemod replaces viewportBottomLeft with viewportUV.flipY()
Next/15/Refactor Imports From @Next/Font To Next/Font
Refactor Imports from @next/font to next/font
@E18e/Regexp.Prototype.Flags
Introduction
@E18e/Md5
Introduction
Next/13/Built In Next Font
This codemod transforms the module specifier
@next/font/*
in import statements intonext/font/*
.Codemod verified
Regularly tested and maintained by our engineers and codemod expert community
Angular Material Imports
This project provides a codemod script to update Angular Material imports to their new module paths, suitable for Angular v9 and beyond. It leverages jscodeshift to transform the import statements in your codebase.