(defers: boolean)
| 4367 | ({ optimize, strategy, names }): WrittenValidators => { |
| 4368 | const refusals: Record<string, string[]> = {} |
| 4369 | const write = (defers: boolean) => |
| 4370 | writeValidators( |
| 4371 | Object.fromEntries( |
| 4372 | names.map(name => [name, exportsByName[name]]) |
| 4373 | ), |
| 4374 | { |
| 4375 | ...this.standalone, |
| 4376 | optimize, |
| 4377 | strategy, |
| 4378 | holdsIds: this.holdsIds, |
| 4379 | members, |
| 4380 | called, |
| 4381 | readsAllows, |
| 4382 | piped, |
| 4383 | combines, |
| 4384 | shapes, |
| 4385 | cells, |
| 4386 | interned, |
| 4387 | scopeNameOf: scope => this.scopeNameOf(scope, module), |
| 4388 | baked: bakedByName, |
| 4389 | configured, |
| 4390 | bake: write => this.bake(write), |
| 4391 | sharedWrites: this.sharedWrites, |
| 4392 | defers, |
| 4393 | // a unit a first call reads runs at its first call too |
| 4394 | hoisted: this.isReachedEarly(module) || defers, |
| 4395 | // shadow mode calls what it compares |
| 4396 | values: !this.shadow, |
| 4397 | readOnLoad: [...namesBySite] |
| 4398 | .filter(([site]) => site.declarationStart !== undefined) |
| 4399 | .map(([, name]) => name) |
| 4400 | }, |
| 4401 | refusals, |
| 4402 | this.inline |
| 4403 | ) |
| 4404 | const canDefer = |
| 4405 | !flattens && this.standalone.lazy === true && optimize === "speed" |
| 4406 | let validators = write(canDefer && this.defers === true) |
nothing calls this directly
no test coverage detected