Function
pluginCallLinesOf
(
calls: PluginCall[],
given: PrecompilePluginOptions
)
Source from the content-addressed store, hash-verified
| 359 | |
| 360 | // e.g. "vite.config.ts:5:22 precompile.vite() sets config, so ark check does too" |
| 361 | export const pluginCallLinesOf = ( |
| 362 | calls: PluginCall[], |
| 363 | given: PrecompilePluginOptions |
| 364 | ): string[] => |
| 365 | calls.flatMap(call => { |
| 366 | const keys = Object.keys(call.options).filter(key => !isGiven(given, key)) |
| 367 | return keys.length ? |
| 368 | [ |
| 369 | `${call.position} ${call.label} sets ${keys.join(", ")}, so ark check does too` |
| 370 | ] |
| 371 | : [] |
| 372 | }) |
Tested by
no test coverage detected