[termux] testing support for termux v11

This commit is contained in:
synt-xerror
2026-03-14 02:33:13 -03:00
parent 60768a9ed3
commit 490827dc17
4 changed files with 19 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
import pkg from "whatsapp-web.js";
const { MessageMedia } = pkg;
import sharp from "sharp";
import sharp from "../utils/sharp-loader.js";
import fs from "fs";
import { botMsg } from "../utils/botMsg.js";
import { client } from "../client/whatsappClient.js"

View File

@@ -0,0 +1,9 @@
let sharp;
try {
sharp = (await import("sharp")).default;
} catch {
sharp = (await import("@img/sharp-wasm")).default;
}
export default sharp;