🎥 Make videos programmatically with React
add doc
Jonny Burger7cd048e7885b
diff --git a/packages/docs/docs/bun.md b/packages/docs/docs/bun.mdnew file mode 100644index 0000000000..83672573d4--- /dev/null+++ b/packages/docs/docs/bun.md@@ -0,0 +1,29 @@+---+image: /generated/articles-docs-bun.png+id: bun+crumb: bun bun bun bun bun+title: Bun support+---++Remotion is excited about [Bun](https://bun.sh), and we partially support it.++## As a package manager++You can use `bun i` to initialize all of our Remotion templates.+To scaffold a new project with bun, use:++```+bun create video+```++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:++- ⚠️ 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++Feel free to file more issues with Remotion if you find them.diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex bc01ed7cd9..ac8d0621c7 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -664,6 +664,7 @@ module.exports = {"miscellaneous/thorium-browser","compare/motion-canvas","gl-options",+ "bun",],},{diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex dd6ab52e05..a5b8dd1174 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -97,6 +97,13 @@ export const articles = [compId: "articles-docs-buffer-state",crumb: "Building video apps",},+ {+ id: "bun",+ title: "Bun support",+ relativePath: "docs/bun.md",+ compId: "articles-docs-bun",+ crumb: "bun bun bun bun bun",+ },{id: "bundle",title: "bundle()",diff --git a/packages/docs/static/generated/articles-docs-bun.png b/packages/docs/static/generated/articles-docs-bun.pngnew file mode 100644index 0000000000..008a7751b0Binary files /dev/null and b/packages/docs/static/generated/articles-docs-bun.png differ