MCPcopy
hub / github.com/rollup/rollup / transform

Function transform

test/cli/samples/config-mjs-plugins/nested/plugin.mjs:5–10  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

3
4export default () => ({
5 transform(code) {
6 return `#!/usr/bin/env node\nconsole.log('${relative(process.cwd(), fileURLToPath(import.meta.url)).replace(
7 '\\',
8 '/'
9 )}');\n${code}`;
10 }
11});

Callers

nothing calls this directly

Calls 1

relativeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…