Skip to content

Commit

Permalink
Update compiler (#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 9cf7e40 commit 7c49096
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-donuts-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Update `@astrojs/compiler` to latest
4 changes: 2 additions & 2 deletions packages/astro/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
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>
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7c49096

Please sign in to comment.