Update compiler (#3892)
* chore: update @astrojs/compiler * chore: add changeset * chore: update test Co-authored-by: Nate Moore <nate@astro.build>
This commit is contained in:
parent
9cf7e40641
commit
7c49096e86
4 changed files with 12 additions and 17 deletions
5
.changeset/odd-donuts-push.md
Normal file
5
.changeset/odd-donuts-push.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Update `@astrojs/compiler` to latest
|
|
@ -82,18 +82,18 @@
|
||||||
"test:e2e:match": "playwright test -g"
|
"test:e2e:match": "playwright test -g"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/compiler": "^0.18.0",
|
"@astrojs/compiler": "^0.18.2",
|
||||||
"@astrojs/language-server": "^0.13.4",
|
"@astrojs/language-server": "^0.13.4",
|
||||||
"@astrojs/markdown-remark": "^0.11.3",
|
"@astrojs/markdown-remark": "^0.11.3",
|
||||||
"@astrojs/prism": "0.4.1",
|
"@astrojs/prism": "0.4.1",
|
||||||
"@astrojs/telemetry": "^0.2.5",
|
"@astrojs/telemetry": "^0.2.5",
|
||||||
"@astrojs/webapi": "^0.12.0",
|
"@astrojs/webapi": "^0.12.0",
|
||||||
"@babel/core": "^7.18.2",
|
"@babel/core": "^7.18.2",
|
||||||
"@babel/types": "^7.18.4",
|
|
||||||
"@babel/generator": "^7.18.2",
|
"@babel/generator": "^7.18.2",
|
||||||
"@babel/parser": "^7.18.4",
|
"@babel/parser": "^7.18.4",
|
||||||
"@babel/plugin-transform-react-jsx": "^7.17.12",
|
"@babel/plugin-transform-react-jsx": "^7.17.12",
|
||||||
"@babel/traverse": "^7.18.2",
|
"@babel/traverse": "^7.18.2",
|
||||||
|
"@babel/types": "^7.18.4",
|
||||||
"@proload/core": "^0.3.2",
|
"@proload/core": "^0.3.2",
|
||||||
"@proload/plugin-tsm": "^0.2.1",
|
"@proload/plugin-tsm": "^0.2.1",
|
||||||
"ast-types": "^0.14.2",
|
"ast-types": "^0.14.2",
|
||||||
|
|
|
@ -11,17 +11,7 @@ import Slotted from '../components/Slotted.astro';
|
||||||
{true && <span slot="a">A</span>}
|
{true && <span slot="a">A</span>}
|
||||||
{true ? <span slot="b">B</span> : null}
|
{true ? <span slot="b">B</span> : null}
|
||||||
{() => <span slot="c">C</span>}
|
{() => <span slot="c">C</span>}
|
||||||
{() => {
|
{true && <span>Default</span>}
|
||||||
const value = 0.33;
|
|
||||||
if (value > 0.25) {
|
|
||||||
return <span>Default</span>
|
|
||||||
} else if (value > 0.5) {
|
|
||||||
return <span>Another</span>
|
|
||||||
} else if (value > 0.75) {
|
|
||||||
return <span>Other</span>
|
|
||||||
}
|
|
||||||
return <span>Yet Another</span>
|
|
||||||
}}
|
|
||||||
</Slotted>
|
</Slotted>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -485,7 +485,7 @@ importers:
|
||||||
|
|
||||||
packages/astro:
|
packages/astro:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/compiler': ^0.18.0
|
'@astrojs/compiler': ^0.18.2
|
||||||
'@astrojs/language-server': ^0.13.4
|
'@astrojs/language-server': ^0.13.4
|
||||||
'@astrojs/markdown-remark': ^0.11.3
|
'@astrojs/markdown-remark': ^0.11.3
|
||||||
'@astrojs/prism': 0.4.1
|
'@astrojs/prism': 0.4.1
|
||||||
|
@ -569,7 +569,7 @@ importers:
|
||||||
yargs-parser: ^21.0.1
|
yargs-parser: ^21.0.1
|
||||||
zod: ^3.17.3
|
zod: ^3.17.3
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/compiler': 0.18.0
|
'@astrojs/compiler': 0.18.2
|
||||||
'@astrojs/language-server': 0.13.4
|
'@astrojs/language-server': 0.13.4
|
||||||
'@astrojs/markdown-remark': link:../markdown/remark
|
'@astrojs/markdown-remark': link:../markdown/remark
|
||||||
'@astrojs/prism': link:../astro-prism
|
'@astrojs/prism': link:../astro-prism
|
||||||
|
@ -2656,8 +2656,8 @@ packages:
|
||||||
leven: 3.1.0
|
leven: 3.1.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@astrojs/compiler/0.18.0:
|
/@astrojs/compiler/0.18.2:
|
||||||
resolution: {integrity: sha512-iBX4Fm5FwAnDLJcnH6DII41lla6iLX3gSabZ884P5TuG+CxL3fEew9gZ6AhTUnpyNXuyuYb6+xWQPQdNA9KsXA==}
|
resolution: {integrity: sha512-R2lOpaif3hDju2/sE6OrKvnTMgrcLRJw+jAVih9pLA2ATgy2EnhYMhflRk1vQ6+YwuhyL6Lj/dRJFXgB7r70eg==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@astrojs/language-server/0.13.4:
|
/@astrojs/language-server/0.13.4:
|
||||||
|
|
Loading…
Reference in a new issue