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: {
|
tsconfigRaw: {
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
// Ensure client:only imports are treeshaken
|
// Ensure client:only imports are treeshaken
|
||||||
|
// @ts-expect-error anticipate esbuild 0.18 feature
|
||||||
|
verbatimModuleSyntax: false,
|
||||||
importsNotUsedAsValues: 'remove',
|
importsNotUsedAsValues: 'remove',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -160,6 +160,8 @@ export default function jsx({ settings, logging }: AstroPluginJSXOptions): Plugi
|
||||||
tsconfigRaw: {
|
tsconfigRaw: {
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
// Ensure client:only imports are treeshaken
|
// Ensure client:only imports are treeshaken
|
||||||
|
// @ts-expect-error anticipate esbuild 0.18 feature
|
||||||
|
verbatimModuleSyntax: false,
|
||||||
importsNotUsedAsValues: 'remove',
|
importsNotUsedAsValues: 'remove',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue