MCPcopy Create free account
hub / github.com/angular/dev-infra / __toESM

Function __toESM

github-actions/browserstack/set-browserstack-env.js:65–72  ·  view source on GitHub ↗
(mod, isNodeMode, target)

Source from the content-addressed store, hash-verified

63 return to;
64 };
65 var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
66 // If the importer is in node compatibility mode or this is not an ESM
67 // file that has been converted to a CommonJS file using a Babel-
68 // compatible transform (i.e. "__esModule" has not been set), then set
69 // "default" to the CommonJS "module.exports" for node compatibility.
70 isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
71 mod
72 ));
73 var __publicField = (obj, key, value) => {
74 __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
75 return value;

Callers 1

Calls 1

__copyPropsFunction · 0.70

Tested by

no test coverage detected