feat: Docs dependencies should include Mixins
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Framework Output Target
Multiple / Other
Output Target Version
0.0.0
Stencil Version
4.43.5
Reproduction URL
https://codesandbox.io/p/devbox/stencil-docs-dependencies-with-mixins-forked-73cjvp
Describe the Bug
Having a mixin FormElementMixin. This has a method renderValidation that will render the component my-validation (class MyValidation).
Now having class MyInput extends Mixin(FormElementMixin) using the renderValidation method from FormElementMixin.
Running build with type docs-json I would have expected that MyInput somehow lists MyValidation as indirect dependency. But the dependencies node is empty. I assume the static analyzer is missing some deeper checks or my understanding of dependencies here is wrong.
Steps to Reproduce
Go Sandbox,
look docs.json in root
Expected Behavior
I would expect the analyzer does recognize the method call from extended class that renders the other component in my current component, so I expect docs.json for this component has a dependencies node listing the other component for the current.
Additional Context
No response
Logs
Source: stenciljs/core