From f36e8b92926041bbca2b039e91f0daf3793b0fab Mon Sep 17 00:00:00 2001 From: john Date: Sat, 4 Jul 2026 12:54:27 +0800 Subject: [PATCH] fix(build): externalize resvg when bundling wechat-mp runtime Co-authored-by: Cursor --- scripts/build-wechat-mp-runtime.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/build-wechat-mp-runtime.mjs b/scripts/build-wechat-mp-runtime.mjs index 749d831..b22163a 100644 --- a/scripts/build-wechat-mp-runtime.mjs +++ b/scripts/build-wechat-mp-runtime.mjs @@ -15,11 +15,19 @@ const outfile = outputArg : path.join(runtimeRoot, 'wechat-mp.bundle.mjs'); const externalPackages = [ + '@img/sharp-darwin-arm64', + '@img/sharp-libvips-darwin-arm64', + '@node-rs/argon2', + '@resvg/resvg-js', 'undici', 'mysql2', 'mysql2/promise', 'sharp', 'fsevents', + 'playwright', + 'playwright-core', + 'chromium-bidi', + 'chromium-bidi/*', ]; function run(command, args) {