MCPcopy Index your code
hub / github.com/rollup/plugins / require

Function require

packages/commonjs/test/test.js:1243–1251  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1241 await executeBundle(bundle, avaAssertions, {
1242 context: {
1243 require(id) {
1244 if (id === 'external') {
1245 return {
1246 first: 'first',
1247 second: 'second'
1248 };
1249 }
1250 throw new Error(`Unexpected require "${id}"`);
1251 }
1252 }
1253 })
1254 ).exports

Callers 15

.prettierrc.jsFile · 0.85
test.mjsFile · 0.85
test.mjsFile · 0.85
test.jsFile · 0.85
test.jsFile · 0.85
dedupe.jsFile · 0.85
order.jsFile · 0.85
browser.jsFile · 0.85
prefer-builtins.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected