Minor fix

This commit is contained in:
Wilson Lin 2021-04-07 22:01:22 +10:00
parent 31c99873f1
commit 2e5d560797
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class EsbuildAsync {
async finalise (html) {
const jsTransformResults = await Promise.all(this.promises);
return html.replace(/_____ESBUILD_ASYNC_PLACEHOLDER_([0-9]+)_____/g, (_, id) => jsTransformResults[id].js.replace(/<\/script/g, '<\\/script'));
return html.replace(/_____ESBUILD_ASYNC_PLACEHOLDER_([0-9]+)_____/g, (_, id) => jsTransformResults[id].code.replace(/<\/script/g, '<\\/script'));
}
}