summaryrefslogtreecommitdiff
path: root/packages/renderers/vue/static-html.js
diff options
context:
space:
mode:
authorGravatar natemoo-re <natemoo-re@users.noreply.github.com> 2021-05-26 18:31:27 +0000
committerGravatar GitHub Actions <actions@github.com> 2021-05-26 18:31:27 +0000
commit5fa7e354b3e66ea95b2c210f51cc2517897bf8f0 (patch)
treed8bbe3764e006c147d5198d53ec1d126bde75379 /packages/renderers/vue/static-html.js
parent643c880f280c3f571a022b6f4d40b6d5a0e911b5 (diff)
downloadastro-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.js22
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;