Skip to content

🎥 Make videos programmatically with React

let's try this

Jonny Burger352bd52236a6
diff --git a/packages/google-fonts/bundle.ts b/packages/google-fonts/bundle.ts
index 15d025647f..8377b4b137 100644
--- a/packages/google-fonts/bundle.ts
+++ b/packages/google-fonts/bundle.ts
@@ -31,12 +31,13 @@ for (const file of output.outputs) {
throw new Error('not compiled correctly');
}
- const bunFile = Bun.file(path.join('dist', 'esm', file.path));
+ const bunPath = path.join('dist', 'esm', file.path);
+ const bunFile = Bun.file(bunPath);
if (await bunFile.exists()) {
await bunFile.unlink();
}
- Bun.write(bunFile, newStr, {});
+ Bun.write(Bun.file(bunPath), newStr, {});
}
// Bun does not yet support * external on Windows,