MCPcopy Create free account
hub / github.com/remix-run/react-router / transform

Function transform

packages/react-router-dev/vite/plugin.ts:1489–1493  ·  view source on GitHub ↗
(code, id)

Source from the content-addressed store, hash-verified

1487 await viteChildCompiler.pluginContainer.buildStart({});
1488 },
1489 async transform(code, id) {
1490 if (isCssModulesFile(id)) {
1491 cssModulesManifest[id] = code;
1492 }
1493 },
1494 async configureServer(viteDevServer) {
1495 setDevServerHooks({
1496 // Give the request handler access to the critical CSS in dev to avoid a

Callers 4

applyEditsFunction · 0.50
createEditorFunction · 0.50
updatePackageJsonFunction · 0.50

Calls 15

isCssModulesFileFunction · 0.90
getRouteChunkModuleIdFunction · 0.90
isRouteChunkModuleIdFunction · 0.90
removeExportsFunction · 0.90
isRouteFunction · 0.85
isRouteVirtualModuleFunction · 0.85
getRouteModuleExportsFunction · 0.85
getRouteChunkIfEnabledFunction · 0.85
preventEmptyChunkSnippetFunction · 0.85

Tested by

no test coverage detected