Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdkPegaComponentMap as argument instead of import #247

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wimbarelds
Copy link

@wimbarelds wimbarelds commented Nov 23, 2023

Updated code pertaining to sdkComponentMap to allow passing the sdkPegaComponentMap as an argument. This allows users to either use the Pega provided component map or alternatively (as seen under samples), or provide their own version of a component map. IE: using React.lazy or a similar mechanism to lazy-load all or just some components.

I don't think this is a fantastic solution, but it at least provides options to the users. In general it would be nice (and also help with bundle splitting and code-readability) if the SDK were more modular.

PR Relates to: #240

[Edit] I previously had something mentioned about AppShell seeming to create a large bundle- after clearing node modules and reinstalling them, that resolves itself. I suspect it was a dependency version mismatch. The Phone component is still quite large- seemingly as a result of material-ui-phone-number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant