()
| 18 | let cachedBinding; |
| 19 | |
| 20 | function loadBinding() { |
| 21 | if (cachedBinding !== undefined) { |
| 22 | return cachedBinding; |
| 23 | } |
| 24 | |
| 25 | const runtimeAssets = resolveRuntimeAssets(); |
| 26 | if (!runtimeAssets) { |
| 27 | throw new Error( |
| 28 | `sharp native runtime in this build targets linux-x64 and linux-x64-musl; received ${process.platform}-${process.arch}`, |
| 29 | ); |
| 30 | } |
| 31 | |
| 32 | cachedBinding = loadEmbeddedSharp(runtimeAssets); |
| 33 | return cachedBinding; |
| 34 | } |
| 35 | |
| 36 | module.exports = loadBinding(); |
no test coverage detected