Does anyone know how to stop the Move... refactoring in WebStorm using non-Node.js import syntax?
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.
-
-
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 more reply
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.