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:
parent
29eef85ce5
commit
01ba07d8fa
4 changed files with 15 additions and 11 deletions
6
.changeset/mighty-poets-prove.md
Normal file
6
.changeset/mighty-poets-prove.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
'@astrojs/lit': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixes Lit compat with Vite 3.0.1
|
|
@ -136,7 +136,7 @@
|
||||||
"strip-ansi": "^7.0.1",
|
"strip-ansi": "^7.0.1",
|
||||||
"supports-esm": "^1.0.0",
|
"supports-esm": "^1.0.0",
|
||||||
"tsconfig-resolver": "^3.0.1",
|
"tsconfig-resolver": "^3.0.1",
|
||||||
"vite": "^3.0.0",
|
"vite": "3.0.2",
|
||||||
"yargs-parser": "^21.0.1",
|
"yargs-parser": "^21.0.1",
|
||||||
"zod": "^3.17.3"
|
"zod": "^3.17.3"
|
||||||
},
|
},
|
||||||
|
|
|
@ -14,11 +14,9 @@ function getViteConfiguration() {
|
||||||
},
|
},
|
||||||
ssr: {
|
ssr: {
|
||||||
external: [
|
external: [
|
||||||
'lit-element/lit-element.js',
|
'lit-element',
|
||||||
'@lit-labs/ssr/lib/install-global-dom-shim.js',
|
'@lit-labs/ssr',
|
||||||
'@lit-labs/ssr/lib/render-lit-html.js',
|
'@astrojs/lit',
|
||||||
'@lit-labs/ssr/lib/lit-element-renderer.js',
|
|
||||||
'@astrojs/lit/server.js',
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -519,7 +519,7 @@ importers:
|
||||||
strip-ansi: ^7.0.1
|
strip-ansi: ^7.0.1
|
||||||
supports-esm: ^1.0.0
|
supports-esm: ^1.0.0
|
||||||
tsconfig-resolver: ^3.0.1
|
tsconfig-resolver: ^3.0.1
|
||||||
vite: ^3.0.0
|
vite: 3.0.2
|
||||||
yargs-parser: ^21.0.1
|
yargs-parser: ^21.0.1
|
||||||
zod: ^3.17.3
|
zod: ^3.17.3
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -577,7 +577,7 @@ importers:
|
||||||
strip-ansi: 7.0.1
|
strip-ansi: 7.0.1
|
||||||
supports-esm: 1.0.0
|
supports-esm: 1.0.0
|
||||||
tsconfig-resolver: 3.0.1
|
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
|
yargs-parser: 21.0.1
|
||||||
zod: 3.17.3
|
zod: 3.17.3
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
@ -15785,9 +15785,9 @@ packages:
|
||||||
fsevents: 2.3.2
|
fsevents: 2.3.2
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/vite/3.0.0_sass@1.53.0:
|
/vite/3.0.2_sass@1.53.0:
|
||||||
resolution: {integrity: sha512-M7phQhY3+fRZa0H+1WzI6N+/onruwPTBTMvaj7TzgZ0v2TE+N2sdLKxJOfOv9CckDWt5C4HmyQP81xB4dwRKzA==}
|
resolution: {integrity: sha512-TAqydxW/w0U5AoL5AsD9DApTvGb2iNbGs3sN4u2VdT1GFkQVUfgUldt+t08TZgi23uIauh1TUOQJALduo9GXqw==}
|
||||||
engines: {node: '>=14.18.0'}
|
engines: {node: ^14.18.0 || >=16.0.0}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
less: '*'
|
less: '*'
|
||||||
|
|
Loading…
Reference in a new issue