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

Ensure react 19 entry is tested with working imports #4649

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

Conversation

JoviDeCroock
Copy link
Member

This ensures that react/server, react/client and many others keep working when they use the react-19 alias point. This also adds tests so that we won't regress in the future. There are still some issues with the import typings, will take another look soon.

@coveralls
Copy link

Coverage Status

coverage: 99.618%. remained the same
when pulling 2b06970 on ensure-tested-and-all-exports-work
into 3ff5f50 on main.

@JoviDeCroock JoviDeCroock changed the title Ensure it's tested with working imports Ensure react 19 entry is tested with working imports Feb 8, 2025

import { options } from 'preact';

const oldVNode = options.vnode;
options.vnode = vnode => {
if (typeof vnode.type === 'function') {
vnode.type._forwarded = true;
if (typeof vnode.type === 'function' && vnode.ref) {
Copy link
Member

Choose a reason for hiding this comment

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

This change probably needs to be mirrored to the CJS copy (in the off chance you didn't already have that change local & just not yet pushed)

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