MCPcopy
hub / github.com/vitest-dev/vitest / resolveId

Function resolveId

packages/browser/rollup.config.js:61–70  ·  view source on GitHub ↗
(id, importer)

Source from the content-addressed store, hash-verified

59 {
60 name: 'no-side-effects',
61 async resolveId(id, importer) {
62 // Clipboard injects "afterEach" callbacks
63 // We mark it as having no side effects to prevent it from being included in the bundle
64 if (id.includes('dataTransfer/Clipboard')) {
65 return {
66 ...await this.resolve(id, importer),
67 moduleSideEffects: false,
68 }
69 }
70 },
71 },
72 ...dtsUtils.isolatedDecl(),
73 ...plugins,

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected