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