fix(build): externalize resvg when bundling wechat-mp runtime
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user