Skip to content

Conversation

@ncamera
Copy link
Collaborator

@ncamera ncamera commented Sep 9, 2025

Changes we propose in this PR

The "lit" dependency is now marked as external, meaning it won't be bundled with the library. This improves code reuse if another library that uses chameleon also uses Lit, and can also fix some issues as it won't mix Lit versions for the development server (because Chameleon was bundling Lit in prod mode, but another libraries use Lit in "dev" mode for the dev server).

Breaking changes

From now on, a build tool (like Vite) with a package manager (like npm, yarn, pnpm or bun) must be used to run Chameleon.

The "lit" dependency is now marked as external, meaning it won't be bundled with the library. This improves code reuse if another library that uses chameleon also uses Lit, and can also fix some issues as it won't mix Lit versions for the development server (because Chameleon was bundling Lit in prod mode, but another libraries use Lit in "dev" mode for the dev server).
@ncamera ncamera added fix Bug fix pull request target: minor This PR is targeted for the next minor release breaking changes dependencies Pull requests that update a dependency file labels Sep 9, 2025
@ncamera ncamera changed the title Mark "lit" dependency as external to optimize bundle size Mark "lit" dependency as external to optimize bundle size and avoid issues when mixing Lit dependencies Sep 9, 2025
@netlify
Copy link

netlify bot commented Sep 9, 2025

Deploy Preview for gx-chameleon ready!

Name Link
🔨 Latest commit ec11022
🔍 Latest deploy log https://app.netlify.com/projects/gx-chameleon/deploys/68ccef77fe30ce0008405a63
😎 Deploy Preview https://deploy-preview-551--gx-chameleon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ncamera ncamera marked this pull request as draft September 9, 2025 17:31
@ncamera ncamera marked this pull request as ready for review September 23, 2025 15:37
@ncamera ncamera merged commit bcf5b1e into main Sep 23, 2025
8 checks passed
@ncamera ncamera deleted the fix/mark-lit-as-external branch September 23, 2025 15:38
@ncamera ncamera added the performance Work related to imporving the performance in the library label Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking changes dependencies Pull requests that update a dependency file fix Bug fix pull request performance Work related to imporving the performance in the library target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants