MCPcopy Index your code
hub / github.com/rrweb-io/rrweb / transform

Function transform

vite.config.default.ts:181–189  ·  view source on GitHub ↗
(code, id)

Source from the content-addressed store, hash-verified

179 name: 'remove-worker-inline',
180 enforce: 'pre',
181 transform(code, id) {
182 if (!disableWorkerInlining) return;
183 if (/\.(js|ts|jsx|tsx)$/.test(id)) {
184 return {
185 code: code.replace(/\?worker&inline/g, '?worker'),
186 map: null,
187 };
188 }
189 },
190 },
191 ...plugins,
192 ],

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected