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

Fix ssr dependencies #36

Merged
merged 4 commits into from
Mar 13, 2023
Merged

Fix ssr dependencies #36

merged 4 commits into from
Mar 13, 2023

Conversation

digitalsadhu
Copy link
Member

Fixes a bug where using customElement.define calls in user land code resulted in redefinition errors.

Solution I landed on in the end was to create a custom registry shim that disables the check in development mode so that when a new element is registered, it just replaces the old one.

Fixes #34

Copy link
Contributor

@trygve-lie trygve-lie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@digitalsadhu digitalsadhu merged commit 212b7e0 into main Mar 13, 2023
@digitalsadhu digitalsadhu deleted the fix_ssr_dependencies branch March 13, 2023 21:24
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.

SSR not working for imported components
2 participants