Minor fix
This commit is contained in:
parent
31c99873f1
commit
2e5d560797
|
@ -43,7 +43,7 @@ class EsbuildAsync {
|
||||||
|
|
||||||
async finalise (html) {
|
async finalise (html) {
|
||||||
const jsTransformResults = await Promise.all(this.promises);
|
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'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue