( fetchPriority?: 'high' | 'low' | 'auto' )
| 403 | }); |
| 404 | |
| 405 | function getFetchPriorityProp( |
| 406 | fetchPriority?: 'high' | 'low' | 'auto' |
| 407 | ): Record<string, string | undefined> { |
| 408 | const pieces = version.split('.'); |
| 409 | const major = parseInt(pieces[0], 10); |
| 410 | if (major >= 19) { |
| 411 | return {fetchPriority}; |
| 412 | } |
| 413 | return {fetchpriority: fetchPriority}; |
| 414 | } |