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

Function replaceName

src/index.js:262–267  ·  view source on GitHub ↗
(filename, name)

Source from the content-addressed store, hash-verified

260}
261
262function replaceName(filename, name) {
263 return resolve(
264 dirname(filename),
265 name + basename(filename).replace(/^[^.]+/, ''),
266 );
267}
268
269function walk(exports, includeDefault) {
270 if (!exports) return null;

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…