MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / customRewrite

Function customRewrite

packages/nuxt/test/vite/sourceMaps.test.ts:122–122  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

120
121 it('allows user to override rewriteSources', () => {
122 const customRewrite = (source: string) => source.replace(/^src\//, 'custom/');
123 const options = getPluginOptions({
124 sourcemaps: {
125 rewriteSources: customRewrite,

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected