3 ms·
Did I read that correctly we are going to lose the ability to require paths and modules eg import {} from './services' or import {} from 'lodash'?
by keepingscore 8y ago
Did I read that correctly we are going to lose the ability to require paths and modules eg import {} from './services' or import {} from 'lodash'?
- jkrems 8y agoFirst: none of the exact rules are written yet. But current discussions seem to suggest "Yes, this will go away" for "./services" being resolved to anything but an absolute location ending in "/services". But importing so-called bare specifiers ("lodash") will almost definitely be supported.
- snek 8y ago> current discussions seem to suggest "Yes, this will go away" for "./services" being resolved to anything but an absolute location ending in "/services" to be clear, this is still heavily in contention. node made a good choice to support requiring something without knowing exactly what type of thing it is, and a lot of people feel we shouldn't throw that away.
- BigJono 8y agoCan you give an actual use case for this? Because it seems insane. How can you use something without knowing what it is?
- snek 8y agoNo you did not.