Does anyone know how to stop the Move... refactoring in WebStorm using non-Node.js import syntax?
-
-
Replying to @jasongorman
Hi, do you move files or symbols? The Move File refactoring should update paths in the require statements, it doesn' introduce any ES-style import statements.
1 reply 0 retweets 3 likes -
Replying to @WebStormIDE
Symbols (e.g., functions). I do that a lot while I'm TDD-ing. It's quite annoying.
1 reply 0 retweets 0 likes -
Replying to @jasongorman
Sorry, Move Symbol only works with symbols in ES modules and, therefore, uses the ES import/export syntax. Actually, if the file doesn't have any `export`/`import` keywords and uses only `exports.` or `module.exports`, the Move refactoring will only work for a file as a whole.
2 replies 0 retweets 0 likes -
Replying to @WebStormIDE @jasongorman
Do you use both CommonJS modules and ES modules in the same file? Can you maybe provide an example showing the problem to make sure we are on the same page? Thanks!
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE
Only CommonJS
1 reply 0 retweets 0 likes
Any chance you can share a sample file where you use this refactoring? Thanks!
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.