Kevin Beaty
Kevin Beaty
Yup. Maybe less utility, but probably worth doing here as well.
I may wait on this one for a bit. As you mentioned, there may not be much utility here and I'm hesitant to add something without an obvious benefit. I'm...
> Late registration is an interesting discussion all on it's own. Yeah. I'm not really sure I want to open that can of worms. I was going to say I...
> But that might be over-thinking it. I'm thinking too far down the hypothetical rabbit trail here which is the root cause of my hesitation. I'm already a bit concerned...
Hmm. OK. Would this be a sufficient implementation of `optional` in your mind? ``` js try { module.exports = require('.'); // require('any-promise') } catch(e) { module.exports = null } ```...
I've discovered a complication with this. ``` js var Promise = require('any-promise/optional') // => null // later var Promise = require('any-promise') // => {} ``` A similar things happens with...
See related discussion in sindresorhus/any-observable#14
Thanks. I haven't had a chance to really look at this, but seems like a good idea. I'll have to look at why the tests are failing though.
In what situation would `require.main.require` work? I didn't really see anything documented in that regard on a quick look.
@jamestalmage Do you have any thoughts on preferring `require.main.require` for use with auto-detection of an implementation? This would apply more to `any-observable` since global `Promise` are more common and would...