Skip to content

🎥 Make videos programmatically with React

Mostly support Bun

Jonny Burger54e003a8e258
diff --git a/packages/cli/src/index.tsx b/packages/cli/src/index.tsx
index 43608c5ee4..6af9eae827 100644
--- a/packages/cli/src/index.tsx
+++ b/packages/cli/src/index.tsx
@@ -51,8 +51,19 @@ export const cli = async () => {
const isBun = typeof Bun !== 'undefined';
if (isBun) {
- Log.warn(
- 'You are running Remotion with Bun. Visit https://remotion.dev/bun for known bugs and status updates.',
+ const version = Bun.version.split('.');
+ if (version.length === 3) {
+ if (Number(version[0]) < 1) {
+ throw new Error('Please upgrade to at least Bun 1.0.3');
+ }
+
+ if (Number(version[1]) === 0 && Number(version[2]) < 3) {
+ throw new Error('Please upgrade to at least Bun 1.0.3');
+ }
+ }
+
+ Log.info(
+ 'You are running Remotion with Bun, which is mostly supported. Visit https://remotion.dev/bun for more information.',
);
}
diff --git a/packages/docs/docs/bun.md b/packages/docs/docs/bun.md
index c3674791f2..3d340d5e3c 100644
--- a/packages/docs/docs/bun.md
+++ b/packages/docs/docs/bun.md
@@ -5,7 +5,7 @@ crumb: bun bun bun bun bun
title: Bun support
---
-Remotion is excited about [Bun](https://bun.sh), and we partially support it.
+Remotion is excited about [Bun](https://bun.sh), and we mostly support it (from v1.0.3).
## As a package manager
@@ -20,11 +20,15 @@ Note that by default, Node.js will continue to be used as the runtime.
## As a runtime
-As of Bun 1.0 and Remotion 4.0.37, the following issues are known:
+As of Bun 1.0.3 and Remotion 4.0.43, the following issues are known:
-- ⚠️ Compositions `lazyComponent`'s do not work in Bun yet.
-- ⚠️ Reloading the Remotion Studio leads to a crash: `Cork buffer must not be held across event loop iterations!`
-- ⚠️ Cannot render videos in the Remotion Studio
-- ⚠️ [Cannot use `bundle()` with Tailwind override](https://github.com/remotion-dev/remotion/issues/2896)
+- ⚠️ The `lazyComponent` prop on `<Composition>` and `<Player>` does not work, and this feature is automatically disabled.
+- ⚠️ A server-side rendering script may not quit automatically after it is done running.
Feel free to file more issues with Remotion if you find them.
+
+Previous issues listed here have been resolved as of Bun 1.0.3.
+
+## For contributors
+
+Start the example testbed using `bun run start-bun`.
diff --git a/packages/docs/docs/getting-started.md b/packages/docs/docs/getting-started.md
index 2f10af5d6d..4ebea19514 100644
--- a/packages/docs/docs/getting-started.md
+++ b/packages/docs/docs/getting-started.md
@@ -58,7 +58,7 @@ bun create video
```
:::note
-Bun as a runtime is partially supported. [Read more here](/docs/bun).
+Bun as a runtime is mostly supported. [Read more here](/docs/bun).
:::
</TabItem>