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(runtime): don't include loadModule logic in hydrate runtime #6145

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

christian-bromann
Copy link
Member

@christian-bromann christian-bromann commented Feb 4, 2025

What is the current behavior?

When compiling for dist-custom-element, there is no need to include the lazy load functionality into the runtime. In fact it causes issues with Next.js and Turbopack when using SSR:

Stencil Screenshot Dec 20 2024

The original PR does seem to provide any hints as to why this was introduced.

What is the new behavior?

Don't include the loadModule function within dist-custom-element runtimes when a hyrdate output target is used.

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

Other information

@christian-bromann christian-bromann requested a review from a team as a code owner February 4, 2025 22:48
@christian-bromann christian-bromann merged commit 948b63a into main Feb 4, 2025
75 checks passed
@christian-bromann christian-bromann deleted the cb/loadModule-fix branch February 4, 2025 23:58
christian-bromann added a commit that referenced this pull request Feb 4, 2025
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.

1 participant