diff --git a/.changeset/odd-donuts-push.md b/.changeset/odd-donuts-push.md new file mode 100644 index 000000000..ac950ecd5 --- /dev/null +++ b/.changeset/odd-donuts-push.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Update `@astrojs/compiler` to latest diff --git a/packages/astro/package.json b/packages/astro/package.json index 78f443ac7..905fffd6c 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -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", diff --git a/packages/astro/test/fixtures/astro-slots/src/pages/conditional.astro b/packages/astro/test/fixtures/astro-slots/src/pages/conditional.astro index 2cc6747b7..e5ae7cd07 100644 --- a/packages/astro/test/fixtures/astro-slots/src/pages/conditional.astro +++ b/packages/astro/test/fixtures/astro-slots/src/pages/conditional.astro @@ -11,17 +11,7 @@ import Slotted from '../components/Slotted.astro'; {true && A} {true ? B : null} {() => C} - {() => { - const value = 0.33; - if (value > 0.25) { - return Default - } else if (value > 0.5) { - return Another - } else if (value > 0.75) { - return Other - } - return Yet Another - }} + {true && Default} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 586ccce03..137851eb7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -485,7 +485,7 @@ importers: packages/astro: specifiers: - '@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 @@ -569,7 +569,7 @@ importers: yargs-parser: ^21.0.1 zod: ^3.17.3 dependencies: - '@astrojs/compiler': 0.18.0 + '@astrojs/compiler': 0.18.2 '@astrojs/language-server': 0.13.4 '@astrojs/markdown-remark': link:../markdown/remark '@astrojs/prism': link:../astro-prism @@ -2656,8 +2656,8 @@ packages: leven: 3.1.0 dev: true - /@astrojs/compiler/0.18.0: - resolution: {integrity: sha512-iBX4Fm5FwAnDLJcnH6DII41lla6iLX3gSabZ884P5TuG+CxL3fEew9gZ6AhTUnpyNXuyuYb6+xWQPQdNA9KsXA==} + /@astrojs/compiler/0.18.2: + resolution: {integrity: sha512-R2lOpaif3hDju2/sE6OrKvnTMgrcLRJw+jAVih9pLA2ATgy2EnhYMhflRk1vQ6+YwuhyL6Lj/dRJFXgB7r70eg==} dev: false /@astrojs/language-server/0.13.4: