split-require icon indicating copy to clipboard operation
split-require copied to clipboard

Support `sr.bind()`

Open goto-bus-stop opened this issue 7 years ago • 0 comments

Going to be useful for a loadable-component thing I'm working on.

var sr = require('split-require')
var component = loadableComponent({
  load: sr.bind(null, './whatever')
  // vs function (cb) { sr('./whatever', cb) }
})

goto-bus-stop avatar Nov 24 '17 21:11 goto-bus-stop