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

feat: add minimal plugin system #23

Closed
wants to merge 12 commits into from
Closed

feat: add minimal plugin system #23

wants to merge 12 commits into from

Conversation

ramboz
Copy link
Collaborator

@ramboz ramboz commented Oct 26, 2023

This adds a minimal plugin/template loading system that can hook into the various ELD phases.

Description

See adobe/aem-boilerplate#254 for full details

How Has This Been Tested?

TBD: petplace, bamboohr, aem.live

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

? id.split('/').splice(id.endsWith('/') ? -2 : -1, 1)[0].replace(/\.js/, '')
: id;
const pluginConfig = {
load: 'eager',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plugins would load in the eager phase by default. should we set this to lazy so we keep the best performance by default, and require explicit opt-in to eager for those plugins that would need immediate instrumentation?

@ramboz ramboz marked this pull request as ready for review October 31, 2023 14:57
cpilsworth added a commit to cpilsworth/dysonxw that referenced this pull request Jul 15, 2024
@ramboz
Copy link
Collaborator Author

ramboz commented Sep 16, 2024

Closing in favor of adobe/aem-boilerplate#374

@ramboz ramboz closed this Sep 16, 2024
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