Marketplace SPFx .sppkg update size limit is capped at 25 MB
What type of issue is this?
other
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
- [ ] 💥 Internet Explorer
- [ ] 💥 Microsoft Edge
- [ ] 💥 Google Chrome
- [ ] 💥 FireFox
- [ ] 💥 Safari
- [ ] mobile (iOS/iPadOS)
- [ ] mobile (Android)
- [x] not applicable
- [x] other (enter in the "Additional environment details" area below)
Additional environment details
- Browser version: not applicable; this is a Marketplace package upload/update limitation
- SPFx version: 1.22.2
- Node.js version: v22.14.0
- Package size: ~30.8 MB after production build
- Build command:
heft build --clean --production && heft package-solution --production - Package setting:
includeClientSideAssets: true
Issue description
We are hitting the 25 MB marketplace update size limit for an SPFx .sppkg package.
We are building a client-side CAD viewer for SharePoint. The package is about 30.8 MB after production build because it includes the runtime assets needed to render CAD and 3D files in the browser.
This appears to be specifically a Marketplace upload/update limitation. The same .sppkg can be uploaded through the tenant App Catalog, so there is already precedent for SharePoint accepting larger SPFx packages.
Could Microsoft increase the Marketplace SPFx .sppkg update size limit above 25 MB? Anything above the current limit would help; 50 MB would give Marketplace SPFx apps with legitimate client-side runtime assets much more breathing room.
Hi @NoamRabbani, Thank you for bringing this issue to our attention. We will look into it and get back to you shortly.
@NoamRabbani, Thanks for sharing the details and the screenshot. I reviewed the reported behavior and the package size validation error. I'll connect with the engineering team to confirm whether this 25 MB Marketplace package size limit is expected by design or if there are any plans to address this limitation. I'll share an update once I have more information.
@Ashlesha-MSFT Thank you so much!
Due to the 25MB limit, we have to do some dodgy software gymnastics like zipping our assets at build time and unzipping them in the SharePoint tenant at runtime to reduce package size below 25MB and get through marketplace validation
Even if the limit increases 5-10MB , it would give us some breathing room. We are building CAD software that runs entirely in the browser in the SharePoint tenant of our customers, so it's really hard to keep CAD software below 25MB
@NoamRabbani / @Ashlesha-MSFT : I'm checking with the partner center team on this, it's not a SharePoint limitation.
Thank you!
Indeed, when manually uploading the SPPKG to SharePoint, it works well even beyond 25MB
It's only when we try to publish to marketplace that we get blocked on this 25MB limit
@NoamRabbani : we added a request to increase the limit for the team owning the relevant part of our public store infrastructure. This has to be reviewed, approved and build, so solution will not be there immediately but we're working on it
@jansenbe That's wonderful news!! Thanks!
We have customers requesting that CAD Viewer supports additional CAD files types, but we could not fulfill the customer requests because of this 25MB limitation. Increasing the limit is amazing because both CAD Viewer and SharePoint are perfectly capable of unlocking this CUJ
@NoamRabbani : can you share a "too large" package with me ([email protected]). We'll want to use that testing a fix. Thx!
@jansenbe I just sent you an email :)