Skip to content

Fix elementClass.prototype undefined error with corejs polyfill#5

Merged
luwes merged 1 commit into
muxinc:mainfrom
kklem0:corejs
Aug 6, 2025
Merged

Fix elementClass.prototype undefined error with corejs polyfill#5
luwes merged 1 commit into
muxinc:mainfrom
kklem0:corejs

Conversation

@kklem0

@kklem0 kklem0 commented Jul 18, 2025

Copy link
Copy Markdown
Contributor

I'm using media-elements which uses ce-la-react, and when I use it with @babel/preset-env + corejs, I get error Cannot use 'in' operator to search for 'onRateChange' in undefined from this line. Patching it fixes it.

@kklem0

kklem0 commented Aug 5, 2025

Copy link
Copy Markdown
Contributor Author

@luwes could you review this? without this we can't use @babel/preset-env.

@luwes luwes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM thanks!

@luwes luwes merged commit cdc294e into muxinc:main Aug 6, 2025
2 checks passed
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.

2 participants