🎥 Make videos programmatically with React
start bun in development
Jonny Burger7bcda28da092
diff --git a/packages/cli/src/load-config.ts b/packages/cli/src/load-config.tsindex b7b065ecc2..d6d9c8d89c 100644--- a/packages/cli/src/load-config.ts+++ b/packages/cli/src/load-config.ts@@ -41,7 +41,7 @@ export const loadConfigFile = async (process.exit(1);}- const str = new TextDecoder().decode(result.outputFiles[0].contents);+ let str = new TextDecoder().decode(result.outputFiles[0].contents);const currentCwd = process.cwd();@@ -50,6 +50,10 @@ export const loadConfigFile = async (process.chdir(remotionRoot);}+ if (process.env.PATCH_BUN_DEVELOPMENT) {+ str = str.replace('@remotion/cli/config', './config');+ }+// Exectute the contents of the config file// eslint-disable-next-line no-evaleval(str);diff --git a/packages/example/package.json b/packages/example/package.jsonindex 9174f44692..08141568b3 100644--- a/packages/example/package.json+++ b/packages/example/package.json@@ -12,6 +12,7 @@"scripts": {"formatting": "prettier src --check","start": "remotion studio --props src/my-props.json",+ "start-bun": "PATCH_BUN_DEVELOPMENT=true bun --bun remotion studio","start-js": "remotion preview src/entry.jsx","comps": "remotion compositions","lint": "eslint src --ext ts,tsx,js,jsx",