Is there any refactoring support for JS require() ?

I have a large project that has hundreds of JS files, all with multiple dependencies, and it needs a major refactor.

Is there any support for this built in?

Or is it regex search & replace time!?

3 comments
Comment actions Permalink

WebStorm doesn't have any specific refactorings for require.js. Basic things like rename should still work...

0
Comment actions Permalink

Would be cool if WS could do a AST analysis of requires like Browserify does, then manage all the moves and update the requires.

0
Comment actions Permalink

Please feel free to file a request for this feature to youtrack


0

Please sign in to leave a comment.