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