Can webstorm ‘quick-fix’ missing requires statements to resolve references to es6 classes defined in the same project? Alternatively, how safe is it to switch to es6 imports with an occasional use of requires for dynamic loading in node? I have tried much googling.
Sorry, it only works the other way around: if a symbol was defined in a CommonJS module, there are quick fixes for adding `require` and `import`, but for symbols defined in the ES6 modules there is only a quick fix for `import`.
-
-
Well, it’s good to have a definitive answer!
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.