MCPcopy
hub / github.com/vitejs/vite / getDebugIdFromString

Function getDebugIdFromString

playground/js-sourcemap/__tests__/js-sourcemap.spec.ts:375–378  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

373
374 test('source and sourcemap contain matching debug IDs', () => {
375 function getDebugIdFromString(input: string): string | undefined {
376 const match = input.match(/\/\/# debugId=([a-fA-F0-9-]+)/)
377 return match ? match[1] : undefined
378 }
379
380 const assets = listAssets().map((asset) => `dist/assets/${asset}`)
381 const jsAssets = assets.filter((asset) => asset.endsWith('.js'))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected