MCPcopy Index your code
hub / github.com/ctrlplusb/react-async-component / es6Resolve

Function es6Resolve

src/asyncComponent.js:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 // Takes the given module and if it has a ".default" the ".default" will
51 // be returned. i.e. handy when you could be dealing with es6 imports.
52 const es6Resolve = x =>
53 autoResolveES2015Default &&
54 x != null &&
55 (typeof x === 'function' || typeof x === 'object') &&
56 x.default
57 ? x.default
58 : x
59
60 const getResolver = () => {
61 if (state.resolver == null) {

Callers 1

renderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…