[termux] testing support for termux v11
This commit is contained in:
9
src/utils/sharp-loader.js
Normal file
9
src/utils/sharp-loader.js
Normal file
@@ -0,0 +1,9 @@
|
||||
let sharp;
|
||||
|
||||
try {
|
||||
sharp = (await import("sharp")).default;
|
||||
} catch {
|
||||
sharp = (await import("@img/sharp-wasm")).default;
|
||||
}
|
||||
|
||||
export default sharp;
|
||||
Reference in New Issue
Block a user