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!?

0

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

0

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

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


0

请先登录再写评论。