-
Notifications
You must be signed in to change notification settings - Fork 47
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
Analyzer (stencil): default values not being represented in attributes #285
Comments
Would you be willing to create a PR to fix this? It should be straightforward enough to do, you can find the logic for it here: custom-elements-manifest/packages/analyzer/src/features/framework-plugins/stencil/stencil.js Lines 63 to 84 in 94650b6
and you should be able to reuse the custom-elements-manifest/packages/analyzer/src/features/analyse-phase/creators/handlers.js Line 282 in 94650b6
|
I've made the PR @ #286. |
Checklist
--dev
flag to get more information?Reproduction Link
Expected behavior
Essentially, the linked attributes to a member are missing the
default
field when in the stencil mode.This is allowed per schema (see below), presents in other modes, and is used by some toolings (storybook).
For example, in the reproduction link above, we have the following for
@Prop() hasDefault: boolean = false;
This is not the case for other modes, such as litelement (the default reproduction):
Relevant Schema
Attributes:
Members:
The text was updated successfully, but these errors were encountered: