Sudden big bundle size due to jsdom canvas

Previously my bundle size is just about ~16M but now it's ~200M (unzipped). Upon checking via du -h .output/server | sort -h for the biggest file/folder, I saw the following:
17M .output/server/node_modules/sharp
18M .output/server/node_modules/re2
18M .output/server/node_modules/re2/build
18M .output/server/node_modules/re2/build/Release
180M .output/server/node_modules/canvas
180M .output/server/node_modules/canvas/build
180M .output/server/node_modules/canvas/build/Release
232M .output/server/node_modules
235M .output/server/
17M .output/server/node_modules/sharp
18M .output/server/node_modules/re2
18M .output/server/node_modules/re2/build
18M .output/server/node_modules/re2/build/Release
180M .output/server/node_modules/canvas
180M .output/server/node_modules/canvas/build
180M .output/server/node_modules/canvas/build/Release
232M .output/server/node_modules
235M .output/server/
as opposed to the previous:
17M ./node_modules/sharp
42M ./node_modules
44M .
17M ./node_modules/sharp
42M ./node_modules
44M .
For some reason it happens specifically on my machine only. I tried building on a server and github action environment and they build as expected. I'm not sure what change caused this because I don't have any. Any clue?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server