POS extension 64 KB limit

Hello!

Not sure what’s happening here, but I have an app with multiple POS UI extensions. As soon as I switch any of the POS extensions to 2025-10 I get the error:

16:14:56 │               app-preview │ ❌ Error
16:14:56 │      multi-barcode-switch │ └  Your script size is 74 KB which exceeds the 64 KB limit

Though the extension is super basic so if it doesn’t fit the size, I don’t see how any POS extension can fit that size. (it’s also always saying 74KB regarless of which extension I enable)

1 Like

Jumping in here to keep it relevant. I also ran into this while upgrading API versions. It is fairly concerning since it’s happening on a pretty small app.

Would be good to get some clarification so I can plan any migration, and hopefully it’s just a temporary thing with this version. Otherwise more data is going to have to be fetched in, and I think there’s some serious limits even with that approach.

hey @jimmijazz , not sure where I got this answer, but it turns out that it is now mandatory to migrate to use preact instead of react. There is a documentation here: Upgrading to 2025-10

If you’re not ready to make the change you’ll have to use a version before 2025-10.

Makes sense! Thanks @Tommy_Gaudreau :person_bowing:

As of 2025-10, Shopify recommends Preact for UI extensions

“recommends” used a bit loosely.

Right, base react being too big to use at all means we don’t have much choice :sweat_smile: I guess we could also migrate to vanilla javascript, but that would be sad :sweat_smile: