diff options
author | 2021-05-26 18:31:27 +0000 | |
---|---|---|
committer | 2021-05-26 18:31:27 +0000 | |
commit | 5fa7e354b3e66ea95b2c210f51cc2517897bf8f0 (patch) | |
tree | d8bbe3764e006c147d5198d53ec1d126bde75379 /packages/renderers/vue/static-html.js | |
parent | 643c880f280c3f571a022b6f4d40b6d5a0e911b5 (diff) | |
download | astro-5fa7e354b3e66ea95b2c210f51cc2517897bf8f0.tar.gz astro-5fa7e354b3e66ea95b2c210f51cc2517897bf8f0.tar.zst astro-5fa7e354b3e66ea95b2c210f51cc2517897bf8f0.zip |
[ci] yarn format
Diffstat (limited to 'packages/renderers/vue/static-html.js')
-rw-r--r-- | packages/renderers/vue/static-html.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/packages/renderers/vue/static-html.js b/packages/renderers/vue/static-html.js index bd8c41c83..e623f1049 100644 --- a/packages/renderers/vue/static-html.js +++ b/packages/renderers/vue/static-html.js @@ -8,20 +8,20 @@ import { h, defineComponent } from 'vue'; */ const StaticHtml = defineComponent({ props: { - value: String + value: String, }, setup({ value }) { if (!value) return () => null; - return () => h('astro-fragment', { innerHTML: value }) - } -}) + return () => h('astro-fragment', { innerHTML: value }); + }, +}); -/** - * Other frameworks have `shouldComponentUpdate` in order to signal - * that this subtree is entirely static and will not be updated - * - * Fortunately, Vue is smart enough to figure that out without any - * help from us, so this just works out of the box! - */ +/** + * Other frameworks have `shouldComponentUpdate` in order to signal + * that this subtree is entirely static and will not be updated + * + * Fortunately, Vue is smart enough to figure that out without any + * help from us, so this just works out of the box! + */ export default StaticHtml; |