@remotion/bundler 4.0.490 → 4.0.491
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 +1 -3
- package/dist/bundle.js +8 -12
- package/dist/index.d.ts +3 -7
- package/dist/rspack-config.d.ts +1 -2
- package/dist/rspack-config.js +1 -2
- package/dist/webpack-config.d.ts +1 -2
- package/dist/webpack-config.js +1 -2
- package/package.json +7 -7
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,
|
|
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,
|
|
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');
|
|
@@ -321,7 +319,6 @@ const internalBundle = async (actualArgs) => {
|
|
|
321
319
|
studioRuntimeConfig: {
|
|
322
320
|
askAIEnabled: actualArgs.askAIEnabled,
|
|
323
321
|
bufferStateDelayInMilliseconds: actualArgs.bufferStateDelayInMilliseconds,
|
|
324
|
-
experimentalClientSideRenderingEnabled: actualArgs.experimentalClientSideRenderingEnabled,
|
|
325
322
|
interactivityEnabled: actualArgs.interactivityEnabled,
|
|
326
323
|
keyboardShortcutsEnabled: actualArgs.keyboardShortcutsEnabled,
|
|
327
324
|
maxTimelineTracks: actualArgs.maxTimelineTracks,
|
|
@@ -337,7 +334,7 @@ exports.internalBundle = internalBundle;
|
|
|
337
334
|
* @see [Documentation](https://remotion.dev/docs/bundle)
|
|
338
335
|
*/
|
|
339
336
|
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
|
|
337
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
341
338
|
const actualArgs = convertArgumentsIntoOptions(args);
|
|
342
339
|
const result = await (0, exports.internalBundle)({
|
|
343
340
|
bufferStateDelayInMilliseconds: (_a = actualArgs.bufferStateDelayInMilliseconds) !== null && _a !== void 0 ? _a : null,
|
|
@@ -356,13 +353,12 @@ async function bundle(...args) {
|
|
|
356
353
|
rootDir: (_o = actualArgs.rootDir) !== null && _o !== void 0 ? _o : null,
|
|
357
354
|
webpackOverride: (_p = actualArgs.webpackOverride) !== null && _p !== void 0 ? _p : ((f) => f),
|
|
358
355
|
audioLatencyHint: (_q = actualArgs.audioLatencyHint) !== null && _q !== void 0 ? _q : null,
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
symlinkPublicDir: (_x = actualArgs.symlinkPublicDir) !== null && _x !== void 0 ? _x : false,
|
|
356
|
+
renderDefaults: (_r = actualArgs.renderDefaults) !== null && _r !== void 0 ? _r : null,
|
|
357
|
+
askAIEnabled: (_s = actualArgs.askAIEnabled) !== null && _s !== void 0 ? _s : true,
|
|
358
|
+
interactivityEnabled: (_t = actualArgs.interactivityEnabled) !== null && _t !== void 0 ? _t : true,
|
|
359
|
+
keyboardShortcutsEnabled: (_u = actualArgs.keyboardShortcutsEnabled) !== null && _u !== void 0 ? _u : true,
|
|
360
|
+
rspack: (_v = actualArgs.rspack) !== null && _v !== void 0 ? _v : false,
|
|
361
|
+
symlinkPublicDir: (_w = actualArgs.symlinkPublicDir) !== null && _w !== void 0 ? _w : false,
|
|
366
362
|
});
|
|
367
363
|
return result;
|
|
368
364
|
}
|
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,
|
|
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,
|
|
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
41
|
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;
|
|
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,
|
|
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
|
};
|
package/dist/rspack-config.d.ts
CHANGED
|
@@ -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,
|
|
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;
|
package/dist/rspack-config.js
CHANGED
|
@@ -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,
|
|
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',
|
package/dist/webpack-config.d.ts
CHANGED
|
@@ -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,
|
|
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]>;
|
package/dist/webpack-config.js
CHANGED
|
@@ -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,
|
|
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.
|
|
6
|
+
"version": "4.0.491",
|
|
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.
|
|
28
|
-
"@remotion/studio": "4.0.
|
|
29
|
-
"@remotion/studio-shared": "4.0.
|
|
30
|
-
"@remotion/timeline-utils": "4.0.
|
|
31
|
-
"@remotion/media-parser": "4.0.
|
|
27
|
+
"remotion": "4.0.491",
|
|
28
|
+
"@remotion/studio": "4.0.491",
|
|
29
|
+
"@remotion/studio-shared": "4.0.491",
|
|
30
|
+
"@remotion/timeline-utils": "4.0.491",
|
|
31
|
+
"@remotion/media-parser": "4.0.491",
|
|
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.
|
|
42
|
+
"@remotion/eslint-config-internal": "4.0.491",
|
|
43
43
|
"eslint": "9.19.0",
|
|
44
44
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
45
45
|
},
|