You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm use Plasmo with the --with-mellowtel, but I'm encountering an issue with the bundle size. When I build the project, I notice that the content, popup, and background files each have a size of over 2MB, totaling more than 6MB. This seems to be because all three files are importing and using the "mellowtel" library.
Expected Behavior
I expected Plasmo to create a separate Vendor Bundle for the shared "mellowtel" library, which all three files (content, popup, and background) could reference. This approach should reduce the total size by approximately 4MB.
Question
Why isn't Plasmo creating a separate Vendor Bundle for the "mellowtel" library? Is there a way to configure the build process to extract common dependencies like "mellowtel" into a shared bundle to reduce the overall size of the extension?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm use Plasmo with the
--with-mellowtel
, but I'm encountering an issue with the bundle size. When I build the project, I notice that thecontent
,popup
, andbackground
files each have a size of over 2MB, totaling more than 6MB. This seems to be because all three files are importing and using the "mellowtel" library.Expected Behavior
I expected Plasmo to create a separate Vendor Bundle for the shared "mellowtel" library, which all three files (content, popup, and background) could reference. This approach should reduce the total size by approximately 4MB.
Question
Why isn't Plasmo creating a separate Vendor Bundle for the "mellowtel" library? Is there a way to configure the build process to extract common dependencies like "mellowtel" into a shared bundle to reduce the overall size of the extension?
Beta Was this translation helpful? Give feedback.
All reactions