diff options
author | 2021-04-02 10:16:16 -0600 | |
---|---|---|
committer | 2021-04-02 10:16:16 -0600 | |
commit | 003b3c395f81df26010112928a30c2d88f283b53 (patch) | |
tree | 6dd9057a0758eb1030018062a72126a8efb9f098 /src/frontend/render/preact.ts | |
parent | 2646f800af80703ae6498232d270a4637fe56dca (diff) | |
download | astro-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.ts | 2 |
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'], |