I am working on an application that relies on various packages, each with its own set of dependencies. For instance, my app may require package@^1.0.0
, while another package it uses may demand package@^1.5.1
. When I build the app for production, will both packages be included in the final code bundle, or just the latest version within the specified range?
Similarly, how does this apply to using a strict version like
<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b5c5d4d6ded4d2d0f5849b859b85">[email protected]</a>
compared to a range like package@^1.5.1
?
I assume that if my app depends on package@^1.0.0
and one of its dependencies requires
<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b6c6d7d5ddd7d1d3f68798869886">[email protected]</a>
, then the same package's code will not be duplicated in the production bundle. Please correct me if I'm mistaken.