Skip to content

Commit

Permalink
Make the Lit integration be compat with Vite 3.0.1 (#4009)
Browse files Browse the repository at this point in the history
* Make the Lit integration be compat with Vite 3.0.1

* Changeset

* Pin Vite version

* Update lockfile
  • Loading branch information
matthewp authored Jul 21, 2022
1 parent 29eef85 commit 01ba07d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .changeset/mighty-poets-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'astro': patch
'@astrojs/lit': patch
---

Fixes Lit compat with Vite 3.0.1
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"strip-ansi": "^7.0.1",
"supports-esm": "^1.0.0",
"tsconfig-resolver": "^3.0.1",
"vite": "^3.0.0",
"vite": "3.0.2",
"yargs-parser": "^21.0.1",
"zod": "^3.17.3"
},
Expand Down
8 changes: 3 additions & 5 deletions packages/integrations/lit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ function getViteConfiguration() {
},
ssr: {
external: [
'lit-element/lit-element.js',
'@lit-labs/ssr/lib/install-global-dom-shim.js',
'@lit-labs/ssr/lib/render-lit-html.js',
'@lit-labs/ssr/lib/lit-element-renderer.js',
'@astrojs/lit/server.js',
'lit-element',
'@lit-labs/ssr',
'@astrojs/lit',
],
},
};
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 01ba07d

Please sign in to comment.