Support the bundle_size_exception capability - #8335
Open
igor10k wants to merge 1 commit into
Open
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.
igor10k
force-pushed
the
i10k/extension_size_exception_scopes
branch
from
August 18, 2026 20:00
cb31b48 to
8e689d6
Compare
igor10k
marked this pull request as ready for review
August 18, 2026 20:01
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds support for the bundle_size_exception UI extension capability by extending the CLI’s capabilities schema so the key is not stripped during configuration parsing and is included in the deploy payload.
Changes:
- Add
bundle_size_exception?: booleantoCapabilitiesSchemaso it is preserved in extension configuration. - Add a unit test ensuring
bundle_size_exceptionappears in the UI extension deploy config. - Add a changeset to publish the capability support as a user-facing change.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/app/src/cli/models/extensions/specifications/ui_extension.test.ts | Adds a deploy-config unit test verifying bundle_size_exception is preserved and sent. |
| packages/app/src/cli/models/extensions/schemas.ts | Extends CapabilitiesSchema with the new optional boolean capability. |
| .changeset/spicy-crabs-bundle.md | Declares a version bump to release support for the new capability. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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
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
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.