MCPcopy Create free account
hub / github.com/developit/microbundle / walk

Function walk

src/index.js:269–275  ·  view source on GitHub ↗
(exports, includeDefault)

Source from the content-addressed store, hash-verified

267}
268
269function walk(exports, includeDefault) {
270 if (!exports) return null;
271 if (typeof exports === 'string') return exports;
272 let p = exports['.'] || exports.import || exports.module;
273 if (!p && includeDefault) p = exports.default;
274 return walk(p, includeDefault);
275}
276
277function getMain({ options, entry, format }) {
278 const { pkg } = options;

Callers 1

getMainFunction · 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…