captainskippah
captainskippah
NNuxt
Created by captainskippah on 4/26/2024 in #❓・help
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?
1 replies