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(compiler): allow dash-case type generation to be disabled #6179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hannahmclarke
Copy link

What is the current behavior?

#6158 added support for dash-casing by generating dash-cased properties from attribute names and adding them to components.d.ts (marking them as deprecated).
This is not always needed (or desired) in projects that were not affected by #6150

fixes #6178

GitHub Issue Number: #6178

What is the new behavior?

noDashCaseTypes has been added as an optional config property. If set to true, dash-cased attribute names/types will not be added to the components.d.ts on build. By default this property is set to false.

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

A test case has been added to generate-app-types.spec.ts
This has also been tested against a Stencil project.

I haven't added a new e2e test, but can do so if needed.

Other information

… generation

Allows for `noDashCaseTypes` to be set in Config to prevent generation of non-camelCase types from attribute names in `components.d.ts` during build.

fixes: stenciljs#6178
feat: allow dash-case type generation to be optional
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.

feat: allow dash-case type generation to be optional
1 participant