[WIP] Support the ui_extension_bundle_size_exception capability - #8335
Draft
igor10k wants to merge 1 commit into
Draft
[WIP] Support the ui_extension_bundle_size_exception capability#8335igor10k wants to merge 1 commit into
igor10k wants to merge 1 commit into
Conversation
Adds ui_extension_bundle_size_exception to the extension capabilities schema so extensions declaring it in shopify.extension.toml include it in the configuration deployed to Shopify. The backend raises the Remote DOM compressed bundle size limit for extensions declaring this capability when the app has been granted a bundle size exception approval scope by Shopify. Intentionally undocumented: grants are shared directly with partners who requested an exception.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Shopify can grant specific apps an exception to the UI extension bundle size limit, applied per extension through the
ui_extension_bundle_size_exceptioncapability inshopify.extension.toml. The capabilities schema strips unknown keys, so without this change the capability never reaches the extension configuration deployed to Shopify and the exception can't take effect. Enforcement is entirely server-side; the exception is granted by Shopify directly to the affected apps.What
ui_extension_bundle_size_exceptionas an optional boolean toCapabilitiesSchema.Testing
shopify.extension.toml, add:shopify app deploy(or inspect the module config sent to App Management) and verify the capability is present in the extension's configuration instead of being stripped.pnpm vitest run src/cli/models/extensions/specifications/ui_extension.test.tsinpackages/app.