Skip to content

🎥 Make videos programmatically with React

Update bundle.ts

Jonny Burger3039266917bf
diff --git a/packages/google-fonts/bundle.ts b/packages/google-fonts/bundle.ts
index 1e157fc802..a452464fe6 100644
--- a/packages/google-fonts/bundle.ts
+++ b/packages/google-fonts/bundle.ts
@@ -26,7 +26,11 @@ for (const file of output.outputs) {
const newStr = str
.replace(/jsxDEV/g, "jsx")
.replace(/react\/jsx-dev-runtime/g, "react/jsx-runtime")
- .replace(/import\(\"(.*)\"\)/g, 'import("$1.mjs")');
+ .replace(/import\(\"(.*)\"\)/g, 'import("$1.mjs")')
+ .replace(
+ `import {loadFonts} from "./base";`,
+ `import {loadFonts} from "./base.mjs";`
+ );
if (newStr.includes(`import("./ABeeZee")`)) {
throw new Error("not compiled correctly");