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

Function tryWriteModule

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

Source from the content-addressed store, hash-verified

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

Callers 3

writeResolverContentFunction · 0.85
flushPendingWritesFunction · 0.85

Calls 2

writeModuleMethod · 0.80
queuePendingWriteFunction · 0.70

Tested by

no test coverage detected