summaryrefslogtreecommitdiff
path: root/src/frontend/render/preact.ts
diff options
context:
space:
mode:
authorGravatar Drew Powers <1369770+drwpow@users.noreply.github.com> 2021-04-02 10:16:16 -0600
committerGravatar GitHub <noreply@github.com> 2021-04-02 10:16:16 -0600
commit003b3c395f81df26010112928a30c2d88f283b53 (patch)
tree6dd9057a0758eb1030018062a72126a8efb9f098 /src/frontend/render/preact.ts
parent2646f800af80703ae6498232d270a4637fe56dca (diff)
downloadastro-003b3c395f81df26010112928a30c2d88f283b53.tar.gz
astro-003b3c395f81df26010112928a30c2d88f283b53.tar.zst
astro-003b3c395f81df26010112928a30c2d88f283b53.zip
Get CSS Modules working in Vue (#53)
Diffstat (limited to 'src/frontend/render/preact.ts')
-rw-r--r--src/frontend/render/preact.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frontend/render/preact.ts b/src/frontend/render/preact.ts
index 359202372..8705c5504 100644
--- a/src/frontend/render/preact.ts
+++ b/src/frontend/render/preact.ts
@@ -7,7 +7,7 @@ Function.prototype(render);
const Preact: Renderer = {
renderStatic(Component) {
- return (props, ...children) => renderToString(h(Component, props, ...children));
+ return async (props, ...children) => renderToString(h(Component, props, ...children));
},
imports: {
preact: ['render', 'h'],