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

Function tryWriteModule

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

Source from the content-addressed store, hash-verified

324 }
325
326 function tryWriteModule(
327 environmentName: string,
328 filePath: string,
329 content: string,
330 ) {
331 const vmPlugin = vmPlugins[environmentName]
332 if (!vmPlugin || !readyVmPlugins[environmentName]) {
333 queuePendingWrite(environmentName, filePath, content)
334 return false
335 }
336
337 vmPlugin.writeModule(filePath, content)
338 return true
339 }
340
341 function flushPendingWrites(environmentName: string) {
342 if (!readyVmPlugins[environmentName]) {

Callers 3

writeResolverContentFunction · 0.85
flushPendingWritesFunction · 0.85

Calls 1

queuePendingWriteFunction · 0.70

Tested by

no test coverage detected