Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sdvg
Copy link

@sdvg sdvg commented Mar 26, 2025

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally for affected output targets
  • Tests (npm test) were run locally and passed
  • Prettier (npm run prettier) was run locally and passed

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue URL:

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Other information

@sdvg sdvg changed the title Add tag name transformer feature to new React adapter Add tag name transformer feature to React adapter Mar 26, 2025
@christian-bromann
Copy link
Member

Thanks for raising the PR. I am currently working on #633 which may create some conflicts. I will review as soon as this lands.

@eshaibu
Copy link

eshaibu commented Apr 24, 2025

Any update on this?

@christian-bromann
Copy link
Member

@eshaibu no updates! I want to get this landed soon but haven't had time to test it thoroughly.

elliottdaviess pushed a commit to elliottdaviess/output-targets that referenced this pull request Aug 19, 2025
- Add global tagNameTransformer with setTagNameTransformer API
- Transform tag names at component creation time for zero build overhead
- Support dynamic transformation based on environment/team configuration
- Add comprehensive test coverage for runtime transformation logic
- Update documentation with detailed usage examples and migration strategies
- Maintain backward compatibility with existing components

Enables multiple versions of Stencil components to coexist in MFE
environments through runtime tag name transformation.

Based on PR stenciljs#635 with improvements:
- Better TypeScript types and documentation
- Comprehensive test coverage
- Clear transformer lifecycle management
- Enhanced error handling and edge cases

Resolves: stenciljs#420
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.

3 participants