MCPcopy Create free account
hub / github.com/R-js/libRmath.js / resolveId

Function resolveId

scripts/rollup.build.mjs:35–43  ·  view source on GitHub ↗
(source, importer)

Source from the content-addressed store, hash-verified

33 return {
34 name: 'stubbing for browser',
35 async resolveId(source, importer) {
36 if (!importer) {
37 return null; // skip entry files
38 }
39 if (source.includes('crypto')) {
40 return source;
41 }
42 return null;
43 },
44 async load(id) {
45 if (id.includes('crypto')) {
46 return cryptoStub;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected