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

Function getImports

util/test.js:44–51  ·  view source on GitHub ↗
(bundle)

Source from the content-addressed store, hash-verified

42};
43
44const getImports = async (bundle) => {
45 if (bundle.imports) {
46 return bundle.imports;
47 }
48 const { output } = await bundle.generate({ format: 'es' });
49 const [{ imports }] = output;
50 return imports;
51};
52
53const getResolvedModules = async (bundle) => {
54 const {

Callers 4

test.mjsFile · 0.90
prefer-builtins.jsFile · 0.85
jail.jsFile · 0.85
only.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected