MCPcopy
hub / github.com/di-sukharev/opencommit / __toESM

Function __toESM

out/cli.cjs:27–34  ·  view source on GitHub ↗
(mod, isNodeMode, target)

Source from the content-addressed store, hash-verified

25 return to;
26};
27var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
28 // If the importer is in node compatibility mode or this is not an ESM
29 // file that has been converted to a CommonJS file using a Babel-
30 // compatible transform (i.e. "__esModule" has not been set), then set
31 // "default" to the CommonJS "module.exports" for node compatibility.
32 isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
33 mod
34));
35
36// node_modules/sisteransi/src/index.js
37var require_src = __commonJS({

Calls 1

__copyPropsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…