Skip to content

Commit 8fbe872

Browse files
authored
Fixed issue causing copied assets to be corrupted (#39)
1 parent 849784c commit 8fbe872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/src/lib/getWidgetFiles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function copyFileSync(source: string, target: string) {
9292
targetFile = path.join(target, path.basename(source));
9393
}
9494

95-
fs.writeFileSync(targetFile, fs.readFileSync(source, "utf8"), "utf8");
95+
fs.writeFileSync(targetFile, fs.readFileSync(source) as NodeJS.ArrayBufferView);
9696
}
9797

9898
function copyFolderRecursiveSync(source: string, target: string) {

0 commit comments

Comments
 (0)