summaryrefslogtreecommitdiff
path: root/packages/integrations/vue
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/vue')
-rw-r--r--packages/integrations/vue/client.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/integrations/vue/client.js b/packages/integrations/vue/client.js
index 508cc59c0..ca61116b2 100644
--- a/packages/integrations/vue/client.js
+++ b/packages/integrations/vue/client.js
@@ -18,9 +18,9 @@ export default (element) =>
// related to https://github.com/withastro/astro/issues/6549
// if the component is async, wrap it in a Suspense component
if (isAsync(Component.setup)) {
- content = h(Suspense, null, content)
+ content = h(Suspense, null, content);
}
-
+
if (client === 'only') {
const app = createApp({ name, render: () => content });
await setup(app);
@@ -32,7 +32,7 @@ export default (element) =>
}
};
-function isAsync (fn) {
- const constructor = fn?.constructor
+function isAsync(fn) {
+ const constructor = fn?.constructor;
return constructor && constructor.name === 'AsyncFunction';
}