Switch to @resvg/resvg-wasm
for generate-images
(#35415)
Use the WASM module of [`resvg-js`](https://github.com/thx/resvg-js) to replace `fabric` and the problematic native `canvas` dependency. WASM works cross-platform so we can include it in the main `package.json`.
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 13 KiB |