@WebStormIDE an Alt+Enter option that converts
`import assert from 'assert‘;`
to
`const assert = require('assert');`
and back would be awesome
Only have an opposite action that converts require statements into the ES6 imports. Do you convert imports to require often?
-
-
mmmh, currently it depends on the project. But sometimes I do, yeah ... often? Can't tell really ;) sorry
-
Our idea was that for the client-side apps you might only need require -> import and now with the ESM same will apply to the node apps :)
End of conversation
New conversation -
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.