Skip to main content

臀部支撑

Remotion 对 Bun 感到兴奋,我们大多数情况下支持它(从 v1.0.3 开始)。

🌐 Remotion is excited about Bun, and we mostly support it (from v1.0.3).

作为一个包管理器

🌐 As a package manager

你可以使用 bun i 来初始化我们所有的 Remotion 模板。 要使用 bun 搭建一个新项目,请使用:

🌐 You can use bun i to initialize all of our Remotion templates.
To scaffold a new project with bun, use:

bun create video

此命令将所有脚本设置为使用 bunx remotionb,它将使用 Bun 作为运行时。 如果你想使用 Node.js 作为运行时,请将 remotionb 更改为 remotion

🌐 This command sets all scripts to use bunx remotionb which will use Bun as a runtime.
Change remotionb to remotion if you want to use Node.js as a runtime.

Remotion 命令行接口

🌐 Remotion CLI

如果你想使用 Bun 运行 Remotion CLI,请使用 remotionb 而不是 remotion 命令
无论你是否在 remotionb 前加上 npxbunx 或其他运行命令,都无关紧要。

🌐 If you want to run the Remotion CLI using Bun, use remotionb instead of the remotion command.
It doesn't matter if you prefix remotionb with npx, bunx or another runner command.

npx remotionb render

作为运行时

🌐 As a runtime

截至 Bun 1.0.24 和 Remotion 4.0.88,已知存在以下问题:

🌐 As of Bun 1.0.24 and Remotion 4.0.88, the following issues are known:

  • ⚠️ <Composition><Player> 上的 lazyComponent 属性不起作用,此功能已被自动禁用。
  • ⚠️ 服务器端渲染脚本在运行完毕后可能不会自动退出。

如果你发现问题,请随时向 Remotion 提交更多问题。

🌐 Feel free to file more issues with Remotion if you find them.

此处列出的先前问题已在 Bun 1.0.24 中得到解决。

🌐 Previous issues listed here have been resolved as of Bun 1.0.24.

对于贡献者

🌐 For contributors

使用 bun run start-bun 启动示例测试平台。

🌐 Start the example testbed using bun run start-bun.

另请参阅

🌐 See also