(
environmentName: string,
filePath: string,
content: string,
)
| 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]) { |
no test coverage detected