Skip to content

Fix ES5 output by using only Babel in this case - #587

Merged
michielvandergeest merged 1 commit into
rdkcentral:devfrom
elsassph:fix/es5-transpilation
Sep 8, 2025
Merged

Fix ES5 output by using only Babel in this case#587
michielvandergeest merged 1 commit into
rdkcentral:devfrom
elsassph:fix/es5-transpilation

Conversation

@elsassph

@elsassph elsassph commented Sep 5, 2025

Copy link
Copy Markdown
Contributor

Fixes #536 - Lightning Core > 2.11.0 Unsupported on older browsers

ESbuild/Rollup doesn't seem to allow Babel do the transpilation to older browsers. This is a regression which I didn't try exactly narrowing.

This PR forces all the JS transformation to be done through Babel - it still is properly minified and the JS size is about the same size (~432Kb for lightning.es5.min.js)

@SemHelevenAndrome

Copy link
Copy Markdown

Hi @elsassph Nice! That seems to work. Also tested in full application.

@michielvandergeest michielvandergeest left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@michielvandergeest
michielvandergeest merged commit fb053e1 into rdkcentral:dev Sep 8, 2025
4 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.

3 participants