MCPcopy
hub / github.com/rollup/rollup / getPackageBase

Function getPackageBase

native.js:134–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132);
133
134function getPackageBase() {
135 const imported = bindingsByPlatformAndArch[platform]?.[arch];
136 if (!imported) {
137 throwUnsupportedError(false);
138 }
139 if ('musl' in imported && isMusl()) {
140 return imported.musl || throwUnsupportedError(true);
141 }
142 return imported.base;
143}
144
145function throwUnsupportedError(isMusl) {
146 throw new Error(

Callers 1

native.jsFile · 0.85

Calls 2

throwUnsupportedErrorFunction · 0.85
isMuslFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…