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

[infra] update Lit and the Lit eleventy plugin #1270

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

AndrewJakubowicz
Copy link
Contributor

@AndrewJakubowicz AndrewJakubowicz commented Nov 20, 2023

Part of issue: #1269

Context

Instead of updating Lit to 3 at once, this change updates us to the latest version of Lit 2. The change to Lit 3 will follow.

I also updated the @lit-labs/eleventy-plugin-lit to pull in the module resolution change.

Why pin @lit-labs/ssr to 3.1.9?

I naively updated @lit-labs/ssr to 3.2., however this introduces compiled templates and requires Lit 3. This pulled in a duplicated Lit 3 into SSR which is incompatible with Lit 2 during SSR – causing CI to fail.

Fixed by deduping lit and not updating it completely. Will update it with Lit 3.

Test plan

Bugs in the Lit upgrade should be caught in the playground or screenshot tests. I tested preview link manually.
Bugs in eleventy-plugin-lit would result in catastrophic build errors. Tested locally & also covered by checking preview link.

Copy link

github-actions bot commented Nov 20, 2023

A live preview of this PR will be available at the URL(s) below.
The latest URL will be appended to this comment on each push.
Each build takes ~5-10 minutes, and will 404 until finished.

https://pr1270-5f998ef---lit-dev-5ftespv5na-uc.a.run.app/

@AndrewJakubowicz
Copy link
Contributor Author

Looks like this naive upgrade resulted in duplicated Lit which is creating property minifaction errors in the eleventy lit plugin.

@AndrewJakubowicz AndrewJakubowicz merged commit eecfce5 into main Nov 27, 2023
15 checks passed
@AndrewJakubowicz AndrewJakubowicz deleted the update-eleventy-lit branch November 27, 2023 19:24
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