Skip to content

🎥 Make videos programmatically with React

remotion root

Jonny Burger3fc8d2ed2c8b
diff --git a/packages/it-tests/src/lambda/lambda-browser-bundle.test.ts b/packages/it-tests/src/lambda/lambda-browser-bundle.test.ts
index 1c3ff54086..476961ad81 100644
--- a/packages/it-tests/src/lambda/lambda-browser-bundle.test.ts
+++ b/packages/it-tests/src/lambda/lambda-browser-bundle.test.ts
@@ -50,3 +50,23 @@ describe("Should be able to bundle @remotion/lambda/client with ESBuild", () =>
fs.unlinkSync(outfile);
});
});
+
+describe("Should be able to bundle @remotion/renderer/pure without React", () => {
+ const outfile = path.join(tmpdir(), "esbuild-test.js");
+
+ test("Should build without errors", async () => {
+ const { errors, warnings } = await BundlerInternals.esbuild.build({
+ platform: "node",
+ target: "node16",
+ bundle: true,
+ outfile,
+ entryPoints: [require.resolve("@remotion/renderer/pure")],
+ });
+ expect(errors.length).toBe(0);
+ expect(warnings.length).toBe(0);
+
+ // Should not include react
+ const contents = fs.readFileSync(outfile, "utf-8");
+ expect(contents.includes("jsx-runtime")).toBe(false);
+ });
+});
diff --git a/packages/renderer/src/options/audio-codec.tsx b/packages/renderer/src/options/audio-codec.tsx
index f458dbd1fd..0e9218e9c5 100644
--- a/packages/renderer/src/options/audio-codec.tsx
+++ b/packages/renderer/src/options/audio-codec.tsx
@@ -262,17 +262,8 @@ export const audioCodecOption = {
value: null,
};
},
- description: () => (
- <>
- Set the format of the audio that is embedded in the video. Not all codec
- and audio codec combinations are supported and certain combinations
- require a certain file extension and container format. See{' '}
- <a href="https://www.remotion.dev/docs/encoding/#audio-codec">
- this table
- </a>{' '}
- to see possible combinations.
- </>
- ),
+ description: () =>
+ `Set the format of the audio that is embedded in the video. Not all codec and audio codec combinations are supported and certain combinations require a certain file extension and container format. See the table in the docs to see possible combinations.`,
docLink: 'https://www.remotion.dev/docs/encoding/#audio-codec',
name: 'Audio Codec',
ssrName,
diff --git a/packages/renderer/src/options/separate-audio.tsx b/packages/renderer/src/options/separate-audio.tsx
index 5ef9c1ee4b..a35ed3278c 100644
--- a/packages/renderer/src/options/separate-audio.tsx
+++ b/packages/renderer/src/options/separate-audio.tsx
@@ -6,16 +6,11 @@ const cliFlag = 'separate-audio-to';
export const separateAudioOption = {
cliFlag,
- description: () => {
- return (
- <>
- If set, the audio will not be included in the main output but rendered
+ description:
+ () => `If set, the audio will not be included in the main output but rendered
as a separate file at the location you pass. It is recommended to use an
absolute path. If a relative path is passed, it is relative to the
- Remotion Root.
- </>
- );
- },
+ Remotion Root.`,
docLink: 'https://remotion.dev/docs/renderer/render-media',
getValue: ({commandLine}) => {
if (commandLine[cliFlag]) {