@remotion/bundler 4.0.487 → 4.0.489
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 -0
- package/dist/bundle.js +15 -5
- package/dist/index.d.ts +5 -3
- package/dist/rspack-config.d.ts +2 -1
- package/dist/rspack-config.js +2 -1
- package/dist/webpack-config.d.ts +2 -1
- package/dist/webpack-config.js +2 -1
- package/package.json +7 -7
package/dist/bundle.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export type MandatoryLegacyBundleOptions = {
|
|
|
12
12
|
onSymlinkDetected: (path: string) => void;
|
|
13
13
|
keyboardShortcutsEnabled: boolean;
|
|
14
14
|
askAIEnabled: boolean;
|
|
15
|
+
interactivityEnabled: boolean;
|
|
15
16
|
rspack: boolean;
|
|
16
17
|
/**
|
|
17
18
|
* If true, the public directory is symlinked into the bundle output instead of copied.
|
package/dist/bundle.js
CHANGED
|
@@ -87,7 +87,7 @@ const trimTrailingSlash = (p) => {
|
|
|
87
87
|
return p;
|
|
88
88
|
};
|
|
89
89
|
const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, }) => {
|
|
90
|
-
var _a, _b, _c, _d;
|
|
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'),
|
|
93
93
|
userDefinedComponent: entryPoint,
|
|
@@ -105,6 +105,7 @@ const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, optio
|
|
|
105
105
|
poll: null,
|
|
106
106
|
experimentalClientSideRenderingEnabled,
|
|
107
107
|
askAIEnabled: (_d = options === null || options === void 0 ? void 0 : options.askAIEnabled) !== null && _d !== void 0 ? _d : true,
|
|
108
|
+
interactivityEnabled: (_e = options === null || options === void 0 ? void 0 : options.interactivityEnabled) !== null && _e !== void 0 ? _e : true,
|
|
108
109
|
extraPlugins: [],
|
|
109
110
|
};
|
|
110
111
|
if (options.rspack) {
|
|
@@ -317,6 +318,14 @@ const internalBundle = async (actualArgs) => {
|
|
|
317
318
|
mode: 'bundle',
|
|
318
319
|
audioLatencyHint: (_l = actualArgs.audioLatencyHint) !== null && _l !== void 0 ? _l : 'playback',
|
|
319
320
|
sampleRate: (_m = (_b = actualArgs.renderDefaults) === null || _b === void 0 ? void 0 : _b.sampleRate) !== null && _m !== void 0 ? _m : 48000,
|
|
321
|
+
studioRuntimeConfig: {
|
|
322
|
+
askAIEnabled: actualArgs.askAIEnabled,
|
|
323
|
+
bufferStateDelayInMilliseconds: actualArgs.bufferStateDelayInMilliseconds,
|
|
324
|
+
experimentalClientSideRenderingEnabled: actualArgs.experimentalClientSideRenderingEnabled,
|
|
325
|
+
interactivityEnabled: actualArgs.interactivityEnabled,
|
|
326
|
+
keyboardShortcutsEnabled: actualArgs.keyboardShortcutsEnabled,
|
|
327
|
+
maxTimelineTracks: actualArgs.maxTimelineTracks,
|
|
328
|
+
},
|
|
320
329
|
});
|
|
321
330
|
node_fs_1.default.writeFileSync(node_path_1.default.join(outDir, 'index.html'), html);
|
|
322
331
|
node_fs_1.default.copyFileSync(node_path_1.default.join(__dirname, '../favicon.ico'), node_path_1.default.join(outDir, 'favicon.ico'));
|
|
@@ -328,7 +337,7 @@ exports.internalBundle = internalBundle;
|
|
|
328
337
|
* @see [Documentation](https://remotion.dev/docs/bundle)
|
|
329
338
|
*/
|
|
330
339
|
async function bundle(...args) {
|
|
331
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
340
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
332
341
|
const actualArgs = convertArgumentsIntoOptions(args);
|
|
333
342
|
const result = await (0, exports.internalBundle)({
|
|
334
343
|
bufferStateDelayInMilliseconds: (_a = actualArgs.bufferStateDelayInMilliseconds) !== null && _a !== void 0 ? _a : null,
|
|
@@ -350,9 +359,10 @@ async function bundle(...args) {
|
|
|
350
359
|
experimentalClientSideRenderingEnabled: (_r = actualArgs.experimentalClientSideRenderingEnabled) !== null && _r !== void 0 ? _r : false,
|
|
351
360
|
renderDefaults: (_s = actualArgs.renderDefaults) !== null && _s !== void 0 ? _s : null,
|
|
352
361
|
askAIEnabled: (_t = actualArgs.askAIEnabled) !== null && _t !== void 0 ? _t : true,
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
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,
|
|
356
366
|
});
|
|
357
367
|
return result;
|
|
358
368
|
}
|
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, extraPlugins, }: {
|
|
6
|
+
webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, interactivityEnabled, extraPlugins, }: {
|
|
7
7
|
entry: string;
|
|
8
8
|
userDefinedComponent: string;
|
|
9
9
|
outDir: string | null;
|
|
@@ -17,10 +17,11 @@ export declare const BundlerInternals: {
|
|
|
17
17
|
remotionRoot: string;
|
|
18
18
|
poll: number | null;
|
|
19
19
|
askAIEnabled: boolean;
|
|
20
|
+
interactivityEnabled: boolean;
|
|
20
21
|
experimentalClientSideRenderingEnabled: boolean;
|
|
21
22
|
extraPlugins: webpack.WebpackPluginInstance[];
|
|
22
23
|
}) => Promise<[string, webpack.Configuration]>;
|
|
23
|
-
rspackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, extraPlugins, }: {
|
|
24
|
+
rspackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, interactivityEnabled, extraPlugins, }: {
|
|
24
25
|
entry: string;
|
|
25
26
|
userDefinedComponent: string;
|
|
26
27
|
outDir: string | null;
|
|
@@ -34,11 +35,12 @@ export declare const BundlerInternals: {
|
|
|
34
35
|
remotionRoot: string;
|
|
35
36
|
poll: number | null;
|
|
36
37
|
askAIEnabled: boolean;
|
|
38
|
+
interactivityEnabled: boolean;
|
|
37
39
|
experimentalClientSideRenderingEnabled: boolean;
|
|
38
40
|
extraPlugins: any[];
|
|
39
41
|
}) => Promise<[string, import("@rspack/core").RspackOptions]>;
|
|
40
42
|
createRspackCompiler: (config: import("@rspack/core").RspackOptions) => import("@rspack/core").Compiler;
|
|
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, }: import("@remotion/studio-shared").StudioHtmlOptions) => string;
|
|
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;
|
|
42
44
|
cacheExists: (remotionRoot: string, environment: "development" | "production", hash: string) => "does-not-exist" | "exists" | "other-exists";
|
|
43
45
|
clearCache: (remotionRoot: string, env: "development" | "production") => Promise<void>;
|
|
44
46
|
getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, }: {
|
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, experimentalClientSideRenderingEnabled, askAIEnabled, extraPlugins, }: {
|
|
4
|
+
export declare const rspackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, interactivityEnabled, extraPlugins, }: {
|
|
5
5
|
entry: string;
|
|
6
6
|
userDefinedComponent: string;
|
|
7
7
|
outDir: string | null;
|
|
@@ -15,6 +15,7 @@ export declare const rspackConfig: ({ entry, userDefinedComponent, outDir, envir
|
|
|
15
15
|
remotionRoot: string;
|
|
16
16
|
poll: number | null;
|
|
17
17
|
askAIEnabled: boolean;
|
|
18
|
+
interactivityEnabled: boolean;
|
|
18
19
|
experimentalClientSideRenderingEnabled: boolean;
|
|
19
20
|
extraPlugins: any[];
|
|
20
21
|
}) => Promise<[string, import("@rspack/core").RspackOptions]>;
|
package/dist/rspack-config.js
CHANGED
|
@@ -9,11 +9,12 @@ 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, extraPlugins, }) => {
|
|
12
|
+
const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, 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,
|
|
16
16
|
askAIEnabled,
|
|
17
|
+
interactivityEnabled,
|
|
17
18
|
keyboardShortcutsEnabled,
|
|
18
19
|
bufferStateDelayInMilliseconds,
|
|
19
20
|
experimentalClientSideRenderingEnabled,
|
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, experimentalClientSideRenderingEnabled, askAIEnabled, extraPlugins, }: {
|
|
5
|
+
export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, interactivityEnabled, extraPlugins, }: {
|
|
6
6
|
entry: string;
|
|
7
7
|
userDefinedComponent: string;
|
|
8
8
|
outDir: string | null;
|
|
@@ -16,6 +16,7 @@ export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, envi
|
|
|
16
16
|
remotionRoot: string;
|
|
17
17
|
poll: number | null;
|
|
18
18
|
askAIEnabled: boolean;
|
|
19
|
+
interactivityEnabled: boolean;
|
|
19
20
|
experimentalClientSideRenderingEnabled: boolean;
|
|
20
21
|
extraPlugins: webpack.WebpackPluginInstance[];
|
|
21
22
|
}) => 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, experimentalClientSideRenderingEnabled, askAIEnabled, extraPlugins, }) => {
|
|
50
|
+
const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, interactivityEnabled, extraPlugins, }) => {
|
|
51
51
|
const esbuildLoaderOptions = {
|
|
52
52
|
target: 'chrome85',
|
|
53
53
|
loader: 'tsx',
|
|
@@ -58,6 +58,7 @@ const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment,
|
|
|
58
58
|
const define = new webpack_1.default.DefinePlugin((0, define_plugin_definitions_1.getDefinePluginDefinitions)({
|
|
59
59
|
maxTimelineTracks,
|
|
60
60
|
askAIEnabled,
|
|
61
|
+
interactivityEnabled,
|
|
61
62
|
keyboardShortcutsEnabled,
|
|
62
63
|
bufferStateDelayInMilliseconds,
|
|
63
64
|
experimentalClientSideRenderingEnabled,
|
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.489",
|
|
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.489",
|
|
28
|
+
"@remotion/studio": "4.0.489",
|
|
29
|
+
"@remotion/studio-shared": "4.0.489",
|
|
30
|
+
"@remotion/timeline-utils": "4.0.489",
|
|
31
|
+
"@remotion/media-parser": "4.0.489",
|
|
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.489",
|
|
43
43
|
"eslint": "9.19.0",
|
|
44
44
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
45
45
|
},
|