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

Switch to preset-env for babel #476

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Switch to preset-env for babel #476

merged 1 commit into from
Feb 13, 2024

Conversation

balloob
Copy link
Member

@balloob balloob commented Feb 13, 2024

Some of the Material Web components use JavaScript syntax that didn't get compiled, which broke unpkg. Unpkg is what we have always suggested as CDN to use for integrating ESP Web Tools on websites.

I put #475 in place to fix that. However, this can cause another breakage if another modern syntax slips in. To avoid this, this PR adds @babel/preset-env and targets Chrome 84.

Chrome 84 is the last version to not support local assignment.

We don't know the exact max version of Chrome that unpkg supports, but this should be a good safe first version.

@balloob balloob merged commit df7b4c6 into main Feb 13, 2024
1 check passed
@balloob balloob deleted the preset-env branch February 13, 2024 17:00
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.

None yet

1 participant