summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2022-07-21 12:25:57 -0400
committerGravatar GitHub <noreply@github.com> 2022-07-21 12:25:57 -0400
commit01ba07d8fa7eb67530b47b8530d65906f1aebf6e (patch)
treeba6408852b7ddab9384f3ba2d062299a8e89665a
parent29eef85ce55d0d8aad87c321613302d2b9dc5eee (diff)
downloadastro-01ba07d8fa7eb67530b47b8530d65906f1aebf6e.tar.gz
astro-01ba07d8fa7eb67530b47b8530d65906f1aebf6e.tar.zst
astro-01ba07d8fa7eb67530b47b8530d65906f1aebf6e.zip
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
-rw-r--r--.changeset/mighty-poets-prove.md6
-rw-r--r--packages/astro/package.json2
-rw-r--r--packages/integrations/lit/src/index.ts8
-rw-r--r--pnpm-lock.yaml10
4 files changed, 15 insertions, 11 deletions
diff --git a/.changeset/mighty-poets-prove.md b/.changeset/mighty-poets-prove.md
new file mode 100644
index 000000000..9bd49e5b6
--- /dev/null
+++ b/.changeset/mighty-poets-prove.md
@@ -0,0 +1,6 @@
+---
+'astro': patch
+'@astrojs/lit': patch
+---
+
+Fixes Lit compat with Vite 3.0.1
diff --git a/packages/astro/package.json b/packages/astro/package.json
index 929c74017..ee82786b3 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -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"
},
diff --git a/packages/integrations/lit/src/index.ts b/packages/integrations/lit/src/index.ts
index 95db13c3d..261f695d6 100644
--- a/packages/integrations/lit/src/index.ts
+++ b/packages/integrations/lit/src/index.ts
@@ -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',
],
},
};
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 16775dabe..85709f413 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -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: '*'