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
[ ] Bug fix (non-breaking change that fixes an issue)
[x] New feature (non-breaking change that adds functionality)
[ ] Documentation update
[ ] Breaking change (could cause existing functionality to not work as expected)
[ ] Other changes (non-breaking changes that does not fit any of the above)
Changes
Filter out disabled application extensions when generating lists of possible modules paths in buildCandidatePaths
Added example extension that will be removed before merging this PR.
How to Test-Drive This PR
Check out this code.
Run the typescript minimal project and notice that there is a red border around the application.
Now edit the package.json to "enable" the "@salesforce/extension-sample-with-overrides" extension by setting enabled to true.
Restart the dev server.
Notice that the border is now green because an override in that extension is now running.
General
[x] Changes are covered by test cases
[x] CHANGELOG.md updated with a short description of changes (not required for documentation updates)
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
buildCandidatePaths
How to Test-Drive This PR
typescript minimal
project and notice that there is a red border around the application.General