Skip to content

Commit 57e6030

Browse files
authored
Handle esbuild 0.18 changes (#7479)
1 parent 2eca765 commit 57e6030

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.changeset/happy-stingrays-carry.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'astro': patch
3+
---
4+
5+
Handle esbuild 0.18 changes

packages/astro/src/vite-plugin-astro/compile.ts

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ export async function cachedFullCompilation({
4141
tsconfigRaw: {
4242
compilerOptions: {
4343
// Ensure client:only imports are treeshaken
44+
// @ts-expect-error anticipate esbuild 0.18 feature
45+
verbatimModuleSyntax: false,
4446
importsNotUsedAsValues: 'remove',
4547
},
4648
},

packages/astro/src/vite-plugin-jsx/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ export default function jsx({ settings, logging }: AstroPluginJSXOptions): Plugi
160160
tsconfigRaw: {
161161
compilerOptions: {
162162
// Ensure client:only imports are treeshaken
163+
// @ts-expect-error anticipate esbuild 0.18 feature
164+
verbatimModuleSyntax: false,
163165
importsNotUsedAsValues: 'remove',
164166
},
165167
},

0 commit comments

Comments
 (0)