rsnext/packages/next-codemod/transforms/__testfixtures__
Hannes Bornö 422b3b01a7
Only run toSource in next/font codemod if there are changes (#46877)
Currently the codemod always runs `root.toSource()`, recreating the
source from the AST. But this can sometimes add unexpected semicolons to
files that actually didn't get updated by the codemod. This PR adds a
check to see if the AST has been updated before running
`root.toSource()`, otherwise it just returns the original source.
2023-03-07 11:21:03 -08:00
..
add-missing-react-import Add codemod for files that do not support the new React JSX transform (#21281) 2021-01-18 15:17:10 +00:00
built-in-next-font Only run toSource in next/font codemod if there are changes (#46877) 2023-03-07 11:21:03 -08:00
name-default-component Move next-codemod to Next.js monorepo (#15536) 2020-08-10 11:14:53 +02:00
new-link issue-41925 fix: skip duplicate props when transferring props from anchor to link (#42158) 2022-10-30 13:09:14 -07:00
next-image-experimental fix: codemod should preserve type only import (#46512) 2023-02-27 21:36:26 +00:00
next-image-experimental-loader fix: codemod next/image within monorepo (#46047) 2023-02-17 18:35:41 -08:00
next-image-to-legacy-image fix: codemod should preserve type only import (#46512) 2023-02-27 21:36:26 +00:00
url-to-withrouter Fix failing codemod test url-to-withrouter (#42109) 2022-10-29 22:26:21 -07:00
withamp-to-config Move next-codemod to Next.js monorepo (#15536) 2020-08-10 11:14:53 +02:00