Skip to content

Commit

Permalink
fix: await can only be used inside an async function
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanOricil committed Oct 28, 2024
1 parent 3c4ff6b commit 0e2e543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function setup() {
logger.info("Setup complete");
}

function processHtml(buildOptions: BuildOptions, node: string): string {
async function processHtml(buildOptions: BuildOptions, node: string): string {
logger.verbose(`Processing html for node: ${node}`);
const htmlFilePath = path.resolve(
BUILDER_CLIENT_TMP_SRC_DIRECTORY,
Expand Down Expand Up @@ -375,7 +375,7 @@ async function bundleClient(config: Config): Promise<void> {
await bundleJavascript(bundlerConfig);

logger.verbose("Rendering client form");
const html = processHtml(bundlerConfig, node);
const html = await processHtml(bundlerConfig, node);

logger.verbose("Rendering client stylesheets");
const stylesheets = await processStylesheets(bundlerConfig, node);
Expand Down

0 comments on commit 0e2e543

Please sign in to comment.