Skip to content

Commit bde4ce4

Browse files
authored
fix: transform html bytes (#150)
1 parent 76faaca commit bde4ce4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/js-plugin-api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ const myPlugin = () => ({
743743
transformHtml: {
744744
order: 2,
745745
async executor({ htmlResource }) {
746-
const htmlCode = Buffer.from(htmlResource).toString();
746+
const htmlCode = Buffer.from(htmlResource.bytes).toString();
747747

748748
const newHtmlCode = htmlCode.replace('my-app-data', data);
749749
htmlResource.bytes = [...Buffer.from(newHtmlCode)];

0 commit comments

Comments
 (0)