Hi everyone ![]()
I’ve been experimenting with the new Polaris Web Components, and I noticed that the recommended way to include them is via:
<script src="https://cdn.shopify.com/shopifycloud/polaris.js"></script>
However, it seems that this script always retrieves the latest version available.
As app developers, we often need to ensure our carefully designed UI experiences remain stable and consistent over time. Automatic upgrades could potentially introduce unexpected visual or behavioral changes, which we might prefer to test and integrate manually.
My question is:
Is there currently a way to lock or pin a specific version of Polaris Web Components when loading from the CDN?
For example, something like:
<script src="https://cdn.shopify.com/shopifycloud/polaris/vX.Y.Z/polaris.js"></script>
Or alternatively, a recommended best practice to manage version control for these assets?
We’d like to have control over when to upgrade Polaris, so we can handle updates at our own pace and ensure everything remains stable for merchants using our apps.