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

Function transform

test/function/samples/plugin-parse/_config.js:9–13  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

7 {
8 name: 'test',
9 transform(code) {
10 const magicString = new MagicString(code);
11 enforceTheAnswer(this.parse(code), magicString);
12 return magicString.toString();
13 }
14 }
15 ]
16 }

Callers

nothing calls this directly

Calls 2

enforceTheAnswerFunction · 0.85
toStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…