You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove EdgeHandler dependency on EdgeStyle.EntityRelation for better tree shaking #978
As a result, applications pay a bundle size cost for a feature they may not use.
Describe the solution you'd like
Explore a way to remove the direct dependency between EdgeHandler and EdgeStyle.EntityRelation.
One possible solution to explore:
Introduce new metadata when registering an edgeStyle.
This metadata could be used by EdgeHandler to determine whether it needs to apply the special processing that is currently hardcoded for EntityRelation.
Decouple EdgeHandler from specific edge style implementations.
Improve tree shaking.
Avoid bundling EntityRelation when it is not used.
In addition, this will allow for the same treatment of applications that provide an alternative implementation to EntityRelation or other EdgeStyle, if necessary. This will provide greater flexibility and possibilities.
Describe alternatives you've considered
Keeping the current direct dependency, but this continues to limit tree shaking.
Moving logic elsewhere without metadata, but this risks reintroducing implicit coupling.
Additional context
This request is directly related to bundle size optimization and long term maintainability.
It also aligns with previous efforts to make connectors and edge styles more modular and tree-shaking friendly.
changed the title [-]Reduce EdgeHandler dependency on EdgeStyle.EntityRelation for better tree shaking[/-][+]Remove EdgeHandler dependency on EdgeStyle.EntityRelation for better tree shaking[/+]on Dec 17, 2025
Activity
coderabbitai commentedon Dec 17, 2025
📝 CodeRabbit Plan Mode
Generate an implementation plan and prompts that you can use with your favorite coding agent.
Examples
🔗 Similar Issues
Related Issues
🔗 Related PRs
#724 - docs: improve jsdoc for custom implementation of EdgeStyle [merged]
#775 - refactor: reorganize builtin style elements [merged]
#785 - feat!: improve tree-shaking of
Perimeter[merged]#787 - feat: improve IDE guidance for style element registration [merged]
#796 - refactor!: remove ARROW, EDGESTYLE, PERIMETER enums [merged]
👤 Suggested Assignees
🧪 Issue enrichment is currently in open beta.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord or schedule a call!
[-]Reduce EdgeHandler dependency on EdgeStyle.EntityRelation for better tree shaking[/-][+]Remove EdgeHandler dependency on EdgeStyle.EntityRelation for better tree shaking[/+]