()
| 251 | } |
| 252 | // a changed file or configuration may need a new worker |
| 253 | const reset = () => { |
| 254 | checkSettings() |
| 255 | precompiler = precompiler.then(async send => |
| 256 | // a config the worker can't read is reported at the next transform |
| 257 | (await send(["reset"]).catch(() => false)) ? replace(send) : send |
| 258 | ) |
| 259 | } |
| 260 | // a build fails under settings it can't build with |
| 261 | function startBuild(this: object | void) { |
| 262 | reset() |
no test coverage detected