MCPcopy Create free account
hub / github.com/TanStack/router / transformScript

Function transformScript

packages/start-server-core/src/transformAssetUrls.ts:368–382  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

366 Promise<Exclude<TransformAssetResult, string>>
367 >()
368 const transformScript = (url: string) => {
369 const cached = scriptTransforms.get(url)
370 if (cached) {
371 return cached
372 }
373
374 const transformed = Promise.resolve(
375 transformFn({
376 url,
377 kind: 'script',
378 }),
379 ).then(normalizeTransformAssetResult)
380 scriptTransforms.set(url, transformed)
381 return transformed
382 }
383
384 if (!inlineCssEnabled) {
385 delete manifest.inlineCss

Callers 1

transformManifestAssetsFunction · 0.85

Calls 4

resolveMethod · 0.80
getMethod · 0.65
thenMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected