-
Hi @nandorojo , Thanks for building an awesome piece of tech. I see that the Does that mean that libraries like Should I be worried about bloating the web bundle size like this by adding packages to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
good question. I don’t think so. I’ve run tests with next’s webpack bundle analyzer and react navigation doesn’t show as getting imported anywhere / affecting the page sizes. i recommend confirming this with the next bundle analyzer by importing / not importing the safe area library and comparing the difference. i made sure to tree shake solito for each platform as much as i could. it’s just up to you to make sure that you don’t import for the wrong platform (notice the .web files in some places to achieve this) hope that helps! |
Beta Was this translation helpful? Give feedback.
good question. I don’t think so. I’ve run tests with next’s webpack bundle analyzer and react navigation doesn’t show as getting imported anywhere / affecting the page sizes. i recommend confirming this with the next bundle analyzer by importing / not importing the safe area library and comparing the difference. i made sure to tree shake solito for each platform as much as i could. it’s just up to you to make sure that you don’t import for the wrong platform (notice the .web files in some places to achieve this)
hope that helps!