422b3b01a7
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. |
||
---|---|---|
.. | ||
add-missing-react-import | ||
built-in-next-font | ||
name-default-component | ||
new-link | ||
next-image-experimental | ||
next-image-experimental-loader | ||
next-image-to-legacy-image | ||
url-to-withrouter | ||
withamp-to-config |