Large bundle size when using --with-mellowtel: No Vendor Bundle created #1111
Unanswered
only-issues
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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