-
Notifications
You must be signed in to change notification settings - Fork 13
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
Expose helpers as shared module and usable while writing custom code #5
Comments
At the moment I copied the helpers inside my private extension build, this leads to redundant code that is why I would like to use sharedModules capabilities and expose to window |
Thanks @alcazes! I understand your desire to have these as shared modules. There are some downsides to having them as shared modules at the moment that we'll need to take into consideration. If the code were exposed as a shared module, it will always be included in all Launch libraries for all Launch properties that have Core installed, regardless of whether the code is used in the library or not. This is because the system that builds the Launch library isn't smart enough to know if another extension in the library is actually using the shared module (e.g., makes a call to We want to eventually improve the build process in such a way that we could determine whether a shared module is actually being used by another extension in the same library and, if not, exclude the shared module code from the library builds. Until then, I think this issue will need to stay open because the cost to everyone's library size would be too great for the potential benefit received. |
@adobe export issue to Jira project PDCL |
✅ Jira issue PDCL-6236 is successfully created for this GitHub issue. |
Checking in to make sure this request has not been forgotten. Some of our platform have raised that Adobe launch seems to be one of the biggest library to load initially so at the moment every kb counts. |
I would like to add |
At present I was able to achieve this using a private extension: But it would be great if it was available out of the box. |
I am working on a private extension at the moment and I noticed that the core extension already provides specific helpers methods that I would like to reuse as sharedModules and as helpers when I wrote custom code in rule and data elements.
I am interested in the following helpers:
I am aware that variables and valueComparison are both linked to specific conditions but it would be ideal to move them to helpers.
Ideally once exposed the use will be:
The text was updated successfully, but these errors were encountered: