SalesforceCommerceCloud / pwa-kit

React-based JavaScript frontend framework to create a progressive web app (PWA) storefront for Salesforce B2C Commerce.
https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/pwa-kit-overview.html
BSD 3-Clause "New" or "Revised" License
285 stars 138 forks source link

@W-16797436@ [App Extensibility ⚙️] Allow overrides to be disabled #2051

Closed bendvc closed 1 month ago

bendvc commented 1 month ago

Description

In this PR I ensure that any overrides that exist in a project DO NOT get used in the module resolution and building of the bundled code if they are DISABLED. This is mirror behaviour of how we handle the Application Extension initialization.

There is 1 caveat however, and that is that you'll most likely need to restart your dev server to see the effects of disabling extensions specifically with overrides as the module resolution logic doesn't re-run. We'll make sure we document that in a known behaviours in a quip doc.

Types of Changes

Changes

How to Test-Drive This PR

General