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

Function tryWriteModule

packages/start-plugin-core/src/rsbuild/virtual-modules.ts:348–361  ·  view source on GitHub ↗
(
    environmentName: string,
    filePath: string,
    content: string,
  )

Source from the content-addressed store, hash-verified

346 }
347
348 function tryWriteModule(
349 environmentName: string,
350 filePath: string,
351 content: string,
352 ) {
353 const vmPlugin = vmPlugins[environmentName]
354 if (!vmPlugin || !readyVmPlugins[environmentName]) {
355 queuePendingWrite(environmentName, filePath, content)
356 return false
357 }
358
359 vmPlugin.writeModule(filePath, content)
360 return true
361 }
362
363 function flushPendingWrites(environmentName: string) {
364 if (!readyVmPlugins[environmentName]) {

Callers 3

writeResolverContentFunction · 0.85
flushPendingWritesFunction · 0.85
updateManifestFunction · 0.85

Calls 2

writeModuleMethod · 0.80
queuePendingWriteFunction · 0.70

Tested by

no test coverage detected