()
| 4 | let cachedBinding; |
| 5 | |
| 6 | function loadBinding() { |
| 7 | if (cachedBinding !== undefined) { |
| 8 | return cachedBinding; |
| 9 | } |
| 10 | |
| 11 | if (process.platform !== 'darwin' || process.arch !== 'arm64') { |
| 12 | throw new Error( |
| 13 | `sharp native runtime in this build targets darwin-arm64; received ${process.platform}-${process.arch}`, |
| 14 | ); |
| 15 | } |
| 16 | |
| 17 | cachedBinding = loadEmbeddedSharp(sharpDarwinArm64Assets); |
| 18 | return cachedBinding; |
| 19 | } |
| 20 | |
| 21 | module.exports = loadBinding(); |
no test coverage detected