Refactoring a tone of javascript modules is a pain. I built a CLI tool to make it easier:https://github.com/southpolesteve/esm-refactor …
Still a little rough around the edges. It does only about 80% of what it could (the most boring 80%). Your linter will probably do the last 20%.
-
-
Special shout out to
@cpojer and everyone who works on jscodeshift Also@who_cayres forhttps://github.com/jurassix/refactoring-codemods …Show this thread -
jscodeshift is awesome, but falls short a bit for coordinating several codemods across files. That is what esm-refactor does.
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.