Monday, 21 September 2020

How can I refactor by moving files in a JavaScript project and have references update automatically?

General tips are welcome. My specific situation is a React app, compiled with WebPack, with lots of files. If I want to move a file or folder within the project, is there a good way to do this such that references, such as import & require statements, update automatically?

Bonus points for solutions using Atom or VSCode.

NPM scripts will also work. Thanks.



from How can I refactor by moving files in a JavaScript project and have references update automatically?

No comments:

Post a Comment