sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Marketplace SPFx .sppkg update size limit is capped at 25 MB

Open NoamRabbani opened this issue 4 months ago • 9 comments

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.

Image

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.

NoamRabbani avatar Jul 07 '26 03:07 NoamRabbani

Hi @NoamRabbani, Thank you for bringing this issue to our attention. We will look into it and get back to you shortly.

Ashlesha-MSFT avatar Jul 07 '26 05:07 Ashlesha-MSFT

@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 avatar Jul 07 '26 10:07 Ashlesha-MSFT

@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 avatar Jul 08 '26 03:07 NoamRabbani

@NoamRabbani / @Ashlesha-MSFT : I'm checking with the partner center team on this, it's not a SharePoint limitation.

jansenbe avatar Jul 14 '26 15:07 jansenbe

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 avatar Jul 14 '26 15:07 NoamRabbani

@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 avatar Jul 16 '26 08:07 jansenbe

@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 avatar Jul 16 '26 14:07 NoamRabbani

@NoamRabbani : can you share a "too large" package with me ([email protected]). We'll want to use that testing a fix. Thx!

jansenbe avatar Sep 04 '26 07:09 jansenbe

@jansenbe I just sent you an email :)

NoamRabbani avatar Sep 04 '26 19:09 NoamRabbani