Skip to content

Commit

Permalink
Update compiler (withastro#3892)
Browse files Browse the repository at this point in the history
* chore: update @astrojs/compiler

* chore: add changeset

* chore: update test

Co-authored-by: Nate Moore <nate@astro.build>
  • Loading branch information
natemoo-re and natemoo-re authored Jul 11, 2022
1 parent b2648d3 commit 2d3e73e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,18 @@
"test:e2e:match": "playwright test -g"
},
"dependencies": {
"@astrojs/compiler": "^0.18.0",
"@astrojs/compiler": "^0.18.2",
"@astrojs/language-server": "^0.13.4",
"@astrojs/markdown-remark": "^0.11.3",
"@astrojs/prism": "0.4.1",
"@astrojs/telemetry": "^0.2.5",
"@astrojs/webapi": "^0.12.0",
"@babel/core": "^7.18.2",
"@babel/types": "^7.18.4",
"@babel/generator": "^7.18.2",
"@babel/parser": "^7.18.4",
"@babel/plugin-transform-react-jsx": "^7.17.12",
"@babel/traverse": "^7.18.2",
"@babel/types": "^7.18.4",
"@proload/core": "^0.3.2",
"@proload/plugin-tsm": "^0.2.1",
"ast-types": "^0.14.2",
Expand Down
12 changes: 1 addition & 11 deletions test/fixtures/astro-slots/src/pages/conditional.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,7 @@ import Slotted from '../components/Slotted.astro';
{true && <span slot="a">A</span>}
{true ? <span slot="b">B</span> : null}
{() => <span slot="c">C</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>
}}
{true && <span>Default</span>}
</Slotted>
</body>
</html>

0 comments on commit 2d3e73e

Please sign in to comment.