mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Handle esbuild 0.18 changes (#7479)
This commit is contained in:
parent
2eca765f91
commit
57e603038f
3 changed files with 9 additions and 0 deletions
5
.changeset/happy-stingrays-carry.md
Normal file
5
.changeset/happy-stingrays-carry.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Handle esbuild 0.18 changes
|
|
@ -41,6 +41,8 @@ export async function cachedFullCompilation({
|
|||
tsconfigRaw: {
|
||||
compilerOptions: {
|
||||
// Ensure client:only imports are treeshaken
|
||||
// @ts-expect-error anticipate esbuild 0.18 feature
|
||||
verbatimModuleSyntax: false,
|
||||
importsNotUsedAsValues: 'remove',
|
||||
},
|
||||
},
|
||||
|
|
|
@ -160,6 +160,8 @@ export default function jsx({ settings, logging }: AstroPluginJSXOptions): Plugi
|
|||
tsconfigRaw: {
|
||||
compilerOptions: {
|
||||
// Ensure client:only imports are treeshaken
|
||||
// @ts-expect-error anticipate esbuild 0.18 feature
|
||||
verbatimModuleSyntax: false,
|
||||
importsNotUsedAsValues: 'remove',
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue