Skip to content

Commit

Permalink
Merge pull request #40 from jynxio/ts
Browse files Browse the repository at this point in the history
修复: 无法在 node v21.5.0 中工作
  • Loading branch information
KonghaYao authored Dec 31, 2023
2 parents f851ba7 + 9349d85 commit fd873ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/subsets/src/convert/font-converter.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@ export const convert = async function (
if (toFormat === 'woff2') {
buffer = await convertTTFToWOFF2Async(buffer as Buffer);
}

buffer = new Uint8Array(buffer);
return buffer;
};

0 comments on commit fd873ca

Please sign in to comment.