Open derenrich opened 7 months ago
Ah. Passing --no-source-maps
drastically reduces my build sizes. I guess that's the ticket though I guess maybe it should emit a warning when this happens? I'd also be fine just closing this.
I have also arrived at the same conclusion to pass this argument. With source maps I get >100MB on my extension.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.
🐛 bug report
I am building a web extension at https://github.com/derenrich/wwwyzzerdd and I am using parcel to build it. The extension works in Chrome and FF but Mozilla will not allow me to upload the extension because some of the generated .js files are larger than 5MB.
See Mozilla's bug report at https://discourse.mozilla.org/t/bug-with-uploading-large-files-in-addon/85407/6
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
Built extension should work on all browsers making files <5MB.
😯 Current Behavior
Dumps >5MB of data into a single file and fails to upload
💁 Possible Solution
To achieve this the extension should split the minimized js file across multiple 5MB files
🔦 Context
I upgraded my dependencies and then the extension's files grew above 5MB and now I can only deploy new versions to Chrome. Unsure how to split this up more.
💻 Code Sample
🌍 Your Environment