0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

Make the Lit integration be compat with Vite 3.0.1 (#4009)

* Make the Lit integration be compat with Vite 3.0.1

* Changeset

* Pin Vite version

* Update lockfile
This commit is contained in:
Matthew Phillips 2022-07-21 12:25:57 -04:00 committed by GitHub
parent 29eef85ce5
commit 01ba07d8fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 11 deletions

View file

@ -0,0 +1,6 @@
---
'astro': patch
'@astrojs/lit': patch
---
Fixes Lit compat with Vite 3.0.1

View file

@ -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"
},

View file

@ -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',
],
},
};

View file

@ -519,7 +519,7 @@ importers:
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
dependencies:
@ -577,7 +577,7 @@ importers:
strip-ansi: 7.0.1
supports-esm: 1.0.0
tsconfig-resolver: 3.0.1
vite: 3.0.0_sass@1.53.0
vite: 3.0.2_sass@1.53.0
yargs-parser: 21.0.1
zod: 3.17.3
devDependencies:
@ -15785,9 +15785,9 @@ packages:
fsevents: 2.3.2
dev: false
/vite/3.0.0_sass@1.53.0:
resolution: {integrity: sha512-M7phQhY3+fRZa0H+1WzI6N+/onruwPTBTMvaj7TzgZ0v2TE+N2sdLKxJOfOv9CckDWt5C4HmyQP81xB4dwRKzA==}
engines: {node: '>=14.18.0'}
/vite/3.0.2_sass@1.53.0:
resolution: {integrity: sha512-TAqydxW/w0U5AoL5AsD9DApTvGb2iNbGs3sN4u2VdT1GFkQVUfgUldt+t08TZgi23uIauh1TUOQJALduo9GXqw==}
engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true
peerDependencies:
less: '*'