@remotion/bundler 4.0.490 → 4.0.492

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.d.ts CHANGED
@@ -23,12 +23,11 @@ export type MandatoryLegacyBundleOptions = {
23
23
  symlinkPublicDir: boolean;
24
24
  };
25
25
  export type LegacyBundleOptions = Partial<MandatoryLegacyBundleOptions>;
26
- export declare const getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, }: {
26
+ export declare const getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, }: {
27
27
  outDir: string;
28
28
  entryPoint: string;
29
29
  resolvedRemotionRoot: string;
30
30
  bufferStateDelayInMilliseconds: number | null;
31
- experimentalClientSideRenderingEnabled: boolean;
32
31
  maxTimelineTracks: number | null;
33
32
  onProgress: (progress: number) => void;
34
33
  options: MandatoryLegacyBundleOptions;
@@ -42,7 +41,6 @@ type NewBundleOptions = {
42
41
  maxTimelineTracks: number | null;
43
42
  bufferStateDelayInMilliseconds: number | null;
44
43
  audioLatencyHint: AudioContextLatencyCategory | null;
45
- experimentalClientSideRenderingEnabled: boolean;
46
44
  renderDefaults: RenderDefaults | null;
47
45
  };
48
46
  type MandatoryBundleOptions = {
package/dist/bundle.js CHANGED
@@ -86,7 +86,7 @@ const trimTrailingSlash = (p) => {
86
86
  }
87
87
  return p;
88
88
  };
89
- const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, }) => {
89
+ const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, }) => {
90
90
  var _a, _b, _c, _d, _e;
91
91
  const configArgs = {
92
92
  entry: node_path_1.default.join(require.resolve('@remotion/studio/renderEntry'), '..', 'esm', 'renderEntry.mjs'),
@@ -103,7 +103,6 @@ const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, optio
103
103
  keyboardShortcutsEnabled: (_c = options === null || options === void 0 ? void 0 : options.keyboardShortcutsEnabled) !== null && _c !== void 0 ? _c : true,
104
104
  bufferStateDelayInMilliseconds,
105
105
  poll: null,
106
- experimentalClientSideRenderingEnabled,
107
106
  askAIEnabled: (_d = options === null || options === void 0 ? void 0 : options.askAIEnabled) !== null && _d !== void 0 ? _d : true,
108
107
  interactivityEnabled: (_e = options === null || options === void 0 ? void 0 : options.interactivityEnabled) !== null && _e !== void 0 ? _e : true,
109
108
  extraPlugins: [],
@@ -187,7 +186,6 @@ const internalBundle = async (actualArgs) => {
187
186
  // Should be null to keep cache hash working
188
187
  bufferStateDelayInMilliseconds: (_f = actualArgs.bufferStateDelayInMilliseconds) !== null && _f !== void 0 ? _f : null,
189
188
  maxTimelineTracks: actualArgs.maxTimelineTracks,
190
- experimentalClientSideRenderingEnabled: actualArgs.experimentalClientSideRenderingEnabled,
191
189
  });
192
190
  if (actualArgs.rspack) {
193
191
  const { rspack: rspackFn } = require('@rspack/core');
@@ -305,6 +303,7 @@ const internalBundle = async (actualArgs) => {
305
303
  title: 'Remotion Bundle',
306
304
  renderDefaults: (_h = actualArgs.renderDefaults) !== null && _h !== void 0 ? _h : undefined,
307
305
  publicFolderExists: `${publicPath + (publicPath.endsWith('/') ? '' : '/')}public`,
306
+ fileSystemPlatform: null,
308
307
  gitSource: (_j = actualArgs.gitSource) !== null && _j !== void 0 ? _j : null,
309
308
  projectName: (0, studio_shared_1.getProjectName)({
310
309
  gitSource: (_k = actualArgs.gitSource) !== null && _k !== void 0 ? _k : null,
@@ -321,7 +320,6 @@ const internalBundle = async (actualArgs) => {
321
320
  studioRuntimeConfig: {
322
321
  askAIEnabled: actualArgs.askAIEnabled,
323
322
  bufferStateDelayInMilliseconds: actualArgs.bufferStateDelayInMilliseconds,
324
- experimentalClientSideRenderingEnabled: actualArgs.experimentalClientSideRenderingEnabled,
325
323
  interactivityEnabled: actualArgs.interactivityEnabled,
326
324
  keyboardShortcutsEnabled: actualArgs.keyboardShortcutsEnabled,
327
325
  maxTimelineTracks: actualArgs.maxTimelineTracks,
@@ -337,7 +335,7 @@ exports.internalBundle = internalBundle;
337
335
  * @see [Documentation](https://remotion.dev/docs/bundle)
338
336
  */
339
337
  async function bundle(...args) {
340
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
338
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
341
339
  const actualArgs = convertArgumentsIntoOptions(args);
342
340
  const result = await (0, exports.internalBundle)({
343
341
  bufferStateDelayInMilliseconds: (_a = actualArgs.bufferStateDelayInMilliseconds) !== null && _a !== void 0 ? _a : null,
@@ -356,13 +354,12 @@ async function bundle(...args) {
356
354
  rootDir: (_o = actualArgs.rootDir) !== null && _o !== void 0 ? _o : null,
357
355
  webpackOverride: (_p = actualArgs.webpackOverride) !== null && _p !== void 0 ? _p : ((f) => f),
358
356
  audioLatencyHint: (_q = actualArgs.audioLatencyHint) !== null && _q !== void 0 ? _q : null,
359
- experimentalClientSideRenderingEnabled: (_r = actualArgs.experimentalClientSideRenderingEnabled) !== null && _r !== void 0 ? _r : false,
360
- renderDefaults: (_s = actualArgs.renderDefaults) !== null && _s !== void 0 ? _s : null,
361
- askAIEnabled: (_t = actualArgs.askAIEnabled) !== null && _t !== void 0 ? _t : true,
362
- interactivityEnabled: (_u = actualArgs.interactivityEnabled) !== null && _u !== void 0 ? _u : true,
363
- keyboardShortcutsEnabled: (_v = actualArgs.keyboardShortcutsEnabled) !== null && _v !== void 0 ? _v : true,
364
- rspack: (_w = actualArgs.rspack) !== null && _w !== void 0 ? _w : false,
365
- symlinkPublicDir: (_x = actualArgs.symlinkPublicDir) !== null && _x !== void 0 ? _x : false,
357
+ renderDefaults: (_r = actualArgs.renderDefaults) !== null && _r !== void 0 ? _r : null,
358
+ askAIEnabled: (_s = actualArgs.askAIEnabled) !== null && _s !== void 0 ? _s : true,
359
+ interactivityEnabled: (_t = actualArgs.interactivityEnabled) !== null && _t !== void 0 ? _t : true,
360
+ keyboardShortcutsEnabled: (_u = actualArgs.keyboardShortcutsEnabled) !== null && _u !== void 0 ? _u : true,
361
+ rspack: (_v = actualArgs.rspack) !== null && _v !== void 0 ? _v : false,
362
+ symlinkPublicDir: (_w = actualArgs.symlinkPublicDir) !== null && _w !== void 0 ? _w : false,
366
363
  });
367
364
  return result;
368
365
  }
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import esbuild = require('esbuild');
3
3
  import webpack = require('webpack');
4
4
  export declare const BundlerInternals: {
5
5
  esbuild: typeof esbuild;
6
- webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, interactivityEnabled, extraPlugins, }: {
6
+ webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, askAIEnabled, interactivityEnabled, extraPlugins, }: {
7
7
  entry: string;
8
8
  userDefinedComponent: string;
9
9
  outDir: string | null;
@@ -18,10 +18,9 @@ export declare const BundlerInternals: {
18
18
  poll: number | null;
19
19
  askAIEnabled: boolean;
20
20
  interactivityEnabled: boolean;
21
- experimentalClientSideRenderingEnabled: boolean;
22
21
  extraPlugins: webpack.WebpackPluginInstance[];
23
22
  }) => Promise<[string, webpack.Configuration]>;
24
- rspackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, interactivityEnabled, extraPlugins, }: {
23
+ rspackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, askAIEnabled, interactivityEnabled, extraPlugins, }: {
25
24
  entry: string;
26
25
  userDefinedComponent: string;
27
26
  outDir: string | null;
@@ -36,19 +35,17 @@ export declare const BundlerInternals: {
36
35
  poll: number | null;
37
36
  askAIEnabled: boolean;
38
37
  interactivityEnabled: boolean;
39
- experimentalClientSideRenderingEnabled: boolean;
40
38
  extraPlugins: any[];
41
39
  }) => Promise<[string, import("@rspack/core").RspackOptions]>;
42
40
  createRspackCompiler: (config: import("@rspack/core").RspackOptions) => import("@rspack/core").Compiler;
43
- indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, sampleRate, logLevel, mode, bundleScriptUrl, readOnlyStudio, studioRuntimeConfig, }: import("@remotion/studio-shared").StudioHtmlOptions) => string;
41
+ indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, fileSystemPlatform, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, sampleRate, logLevel, mode, bundleScriptUrl, readOnlyStudio, studioRuntimeConfig, }: import("@remotion/studio-shared").StudioHtmlOptions) => string;
44
42
  cacheExists: (remotionRoot: string, environment: "development" | "production", hash: string) => "does-not-exist" | "exists" | "other-exists";
45
43
  clearCache: (remotionRoot: string, env: "development" | "production") => Promise<void>;
46
- getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, }: {
44
+ getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, }: {
47
45
  outDir: string;
48
46
  entryPoint: string;
49
47
  resolvedRemotionRoot: string;
50
48
  bufferStateDelayInMilliseconds: number | null;
51
- experimentalClientSideRenderingEnabled: boolean;
52
49
  maxTimelineTracks: number | null;
53
50
  onProgress: (progress: number) => void;
54
51
  options: import("./bundle").MandatoryLegacyBundleOptions;
@@ -72,7 +69,6 @@ export declare const BundlerInternals: {
72
69
  maxTimelineTracks: number | null;
73
70
  bufferStateDelayInMilliseconds: number | null;
74
71
  audioLatencyHint: AudioContextLatencyCategory | null;
75
- experimentalClientSideRenderingEnabled: boolean;
76
72
  renderDefaults: import("@remotion/studio-shared").RenderDefaults | null;
77
73
  } & import("./bundle").MandatoryLegacyBundleOptions) => Promise<string>;
78
74
  };
@@ -1,7 +1,7 @@
1
1
  import type { Configuration } from '@rspack/core';
2
2
  import type { WebpackOverrideFn } from './webpack-config';
3
3
  export type RspackConfiguration = Configuration;
4
- export declare const rspackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, interactivityEnabled, extraPlugins, }: {
4
+ export declare const rspackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, askAIEnabled, interactivityEnabled, extraPlugins, }: {
5
5
  entry: string;
6
6
  userDefinedComponent: string;
7
7
  outDir: string | null;
@@ -16,7 +16,6 @@ export declare const rspackConfig: ({ entry, userDefinedComponent, outDir, envir
16
16
  poll: number | null;
17
17
  askAIEnabled: boolean;
18
18
  interactivityEnabled: boolean;
19
- experimentalClientSideRenderingEnabled: boolean;
20
19
  extraPlugins: any[];
21
20
  }) => Promise<[string, import("@rspack/core").RspackOptions]>;
22
21
  export declare const createRspackCompiler: (config: import("@rspack/core").RspackOptions) => import("@rspack/core").Compiler;
@@ -9,7 +9,7 @@ const core_1 = require("@rspack/core");
9
9
  const plugin_react_refresh_1 = __importDefault(require("@rspack/plugin-react-refresh"));
10
10
  const define_plugin_definitions_1 = require("./define-plugin-definitions");
11
11
  const shared_bundler_config_1 = require("./shared-bundler-config");
12
- const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, interactivityEnabled, extraPlugins, }) => {
12
+ const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, askAIEnabled, interactivityEnabled, extraPlugins, }) => {
13
13
  let lastProgress = 0;
14
14
  const define = new core_1.DefinePlugin((0, define_plugin_definitions_1.getDefinePluginDefinitions)({
15
15
  maxTimelineTracks,
@@ -17,7 +17,6 @@ const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment,
17
17
  interactivityEnabled,
18
18
  keyboardShortcutsEnabled,
19
19
  bufferStateDelayInMilliseconds,
20
- experimentalClientSideRenderingEnabled,
21
20
  }));
22
21
  const swcLoaderRule = {
23
22
  loader: 'builtin:swc-loader',
@@ -8,28 +8,35 @@ const jsx_dev_runtime_1 = __importDefault(require("react/jsx-dev-runtime"));
8
8
  const jsx_runtime_1 = __importDefault(require("react/jsx-runtime"));
9
9
  const remotion_1 = require("remotion");
10
10
  const componentsToAddStacksTo = remotion_1.Internals.getComponentsToAddStacksTo();
11
+ const sequenceComponent = remotion_1.Internals.getSequenceComponent();
11
12
  const originalCreateElement = react_1.default.createElement;
12
13
  const originalJsx = jsx_runtime_1.default.jsx;
13
14
  const originalJsxs = jsx_runtime_1.default.jsxs;
14
15
  const originalJsxDev = jsx_dev_runtime_1.default.jsxDEV;
15
- const enableProxy = (api) => {
16
+ const enableProxy = (api, isCreateElement) => {
16
17
  return new Proxy(api, {
17
18
  apply(target, thisArg, argArray) {
18
19
  if (componentsToAddStacksTo.includes(argArray[0])) {
19
20
  const [first, props, ...rest] = argArray;
21
+ const children = isCreateElement
22
+ ? rest.length === 0
23
+ ? props === null || props === void 0 ? void 0 : props.children
24
+ : rest
25
+ : props === null || props === void 0 ? void 0 : props.children;
20
26
  const newProps = (props === null || props === void 0 ? void 0 : props.stack)
21
- ? props
22
- : {
23
- ...(props !== null && props !== void 0 ? props : {}),
24
- stack: new Error().stack,
25
- };
27
+ ? { ...props }
28
+ : { ...(props !== null && props !== void 0 ? props : {}), stack: new Error().stack };
29
+ if (first === sequenceComponent) {
30
+ newProps._remotionInternalSingleChildComponent =
31
+ remotion_1.Internals.getSingleChildComponent(children);
32
+ }
26
33
  return Reflect.apply(target, thisArg, [first, newProps, ...rest]);
27
34
  }
28
35
  return Reflect.apply(target, thisArg, argArray);
29
36
  },
30
37
  });
31
38
  };
32
- react_1.default.createElement = enableProxy(originalCreateElement);
33
- jsx_runtime_1.default.jsx = enableProxy(originalJsx);
34
- jsx_runtime_1.default.jsxs = enableProxy(originalJsxs);
35
- jsx_dev_runtime_1.default.jsxDEV = enableProxy(originalJsxDev);
39
+ react_1.default.createElement = enableProxy(originalCreateElement, true);
40
+ jsx_runtime_1.default.jsx = enableProxy(originalJsx, false);
41
+ jsx_runtime_1.default.jsxs = enableProxy(originalJsxs, false);
42
+ jsx_dev_runtime_1.default.jsxDEV = enableProxy(originalJsxDev, false);
@@ -2,7 +2,7 @@ import type { Configuration } from 'webpack';
2
2
  import webpack from 'webpack';
3
3
  export type WebpackConfiguration = Configuration;
4
4
  export type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration | Promise<WebpackConfiguration>;
5
- export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, interactivityEnabled, extraPlugins, }: {
5
+ export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, askAIEnabled, interactivityEnabled, extraPlugins, }: {
6
6
  entry: string;
7
7
  userDefinedComponent: string;
8
8
  outDir: string | null;
@@ -17,6 +17,5 @@ export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, envi
17
17
  poll: number | null;
18
18
  askAIEnabled: boolean;
19
19
  interactivityEnabled: boolean;
20
- experimentalClientSideRenderingEnabled: boolean;
21
20
  extraPlugins: webpack.WebpackPluginInstance[];
22
21
  }) => Promise<[string, Configuration]>;
@@ -47,7 +47,7 @@ const esbuild = require("esbuild");
47
47
  function truthy(value) {
48
48
  return Boolean(value);
49
49
  }
50
- const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, interactivityEnabled, extraPlugins, }) => {
50
+ const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, askAIEnabled, interactivityEnabled, extraPlugins, }) => {
51
51
  const esbuildLoaderOptions = {
52
52
  target: 'chrome85',
53
53
  loader: 'tsx',
@@ -61,7 +61,6 @@ const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment,
61
61
  interactivityEnabled,
62
62
  keyboardShortcutsEnabled,
63
63
  bufferStateDelayInMilliseconds,
64
- experimentalClientSideRenderingEnabled,
65
64
  }));
66
65
  const conf = await webpackOverride({
67
66
  ...(0, shared_bundler_config_1.getBaseConfig)(environment, poll),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/bundler"
4
4
  },
5
5
  "name": "@remotion/bundler",
6
- "version": "4.0.490",
6
+ "version": "4.0.492",
7
7
  "description": "Bundle Remotion compositions using Webpack",
8
8
  "main": "dist/index.js",
9
9
  "bugs": {
@@ -24,11 +24,11 @@
24
24
  "css-loader": "7.1.4",
25
25
  "esbuild": "0.28.1",
26
26
  "react-refresh": "0.18.0",
27
- "remotion": "4.0.490",
28
- "@remotion/studio": "4.0.490",
29
- "@remotion/studio-shared": "4.0.490",
30
- "@remotion/timeline-utils": "4.0.490",
31
- "@remotion/media-parser": "4.0.490",
27
+ "remotion": "4.0.492",
28
+ "@remotion/studio": "4.0.492",
29
+ "@remotion/studio-shared": "4.0.492",
30
+ "@remotion/timeline-utils": "4.0.492",
31
+ "@remotion/media-parser": "4.0.492",
32
32
  "style-loader": "4.0.0",
33
33
  "webpack": "5.105.0"
34
34
  },
@@ -39,7 +39,7 @@
39
39
  "devDependencies": {
40
40
  "react": "19.2.3",
41
41
  "react-dom": "19.2.3",
42
- "@remotion/eslint-config-internal": "4.0.490",
42
+ "@remotion/eslint-config-internal": "4.0.492",
43
43
  "eslint": "9.19.0",
44
44
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
45
45
  },