@remotion/bundler 4.0.407 → 4.0.409
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 +2 -0
- package/dist/bundle.js +14 -11
- package/dist/index.d.ts +2 -1
- package/dist/webpack-config.d.ts +2 -1
- package/dist/webpack-config.js +2 -1
- package/package.json +6 -6
package/dist/bundle.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export type MandatoryLegacyBundleOptions = {
|
|
|
10
10
|
publicDir: string | null;
|
|
11
11
|
onPublicDirCopyProgress: (bytes: number) => void;
|
|
12
12
|
onSymlinkDetected: (path: string) => void;
|
|
13
|
+
keyboardShortcutsEnabled: boolean;
|
|
14
|
+
askAIEnabled: boolean;
|
|
13
15
|
};
|
|
14
16
|
export type LegacyBundleOptions = Partial<MandatoryLegacyBundleOptions>;
|
|
15
17
|
export declare const getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, }: {
|
package/dist/bundle.js
CHANGED
|
@@ -70,7 +70,7 @@ const trimTrailingSlash = (p) => {
|
|
|
70
70
|
return p;
|
|
71
71
|
};
|
|
72
72
|
const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, }) => {
|
|
73
|
-
var _a, _b;
|
|
73
|
+
var _a, _b, _c, _d;
|
|
74
74
|
return (0, webpack_config_1.webpackConfig)({
|
|
75
75
|
entry: node_path_1.default.join(require.resolve('@remotion/studio/renderEntry'), '..', 'esm', 'renderEntry.mjs'),
|
|
76
76
|
userDefinedComponent: entryPoint,
|
|
@@ -83,10 +83,11 @@ const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, optio
|
|
|
83
83
|
enableCaching: (_b = options === null || options === void 0 ? void 0 : options.enableCaching) !== null && _b !== void 0 ? _b : true,
|
|
84
84
|
maxTimelineTracks,
|
|
85
85
|
remotionRoot: resolvedRemotionRoot,
|
|
86
|
-
keyboardShortcutsEnabled: true,
|
|
86
|
+
keyboardShortcutsEnabled: (_c = options === null || options === void 0 ? void 0 : options.keyboardShortcutsEnabled) !== null && _c !== void 0 ? _c : true,
|
|
87
87
|
bufferStateDelayInMilliseconds,
|
|
88
88
|
poll: null,
|
|
89
89
|
experimentalClientSideRenderingEnabled,
|
|
90
|
+
askAIEnabled: (_d = options === null || options === void 0 ? void 0 : options.askAIEnabled) !== null && _d !== void 0 ? _d : true,
|
|
90
91
|
});
|
|
91
92
|
};
|
|
92
93
|
exports.getConfig = getConfig;
|
|
@@ -137,7 +138,7 @@ const validateEntryPoint = async (entryPoint) => {
|
|
|
137
138
|
}
|
|
138
139
|
};
|
|
139
140
|
const internalBundle = async (actualArgs) => {
|
|
140
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
141
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
141
142
|
const entryPoint = node_path_1.default.resolve(process.cwd(), actualArgs.entryPoint);
|
|
142
143
|
const resolvedRemotionRoot = (_b = (_a = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.rootDir) !== null && _a !== void 0 ? _a : findClosestPackageJsonFolder(entryPoint)) !== null && _b !== void 0 ? _b : process.cwd();
|
|
143
144
|
if (!actualArgs.ignoreRegisterRootWarning) {
|
|
@@ -161,8 +162,8 @@ const internalBundle = async (actualArgs) => {
|
|
|
161
162
|
options,
|
|
162
163
|
// Should be null to keep cache hash working
|
|
163
164
|
bufferStateDelayInMilliseconds: (_e = actualArgs.bufferStateDelayInMilliseconds) !== null && _e !== void 0 ? _e : null,
|
|
164
|
-
maxTimelineTracks:
|
|
165
|
-
experimentalClientSideRenderingEnabled:
|
|
165
|
+
maxTimelineTracks: actualArgs.maxTimelineTracks,
|
|
166
|
+
experimentalClientSideRenderingEnabled: actualArgs.experimentalClientSideRenderingEnabled,
|
|
166
167
|
});
|
|
167
168
|
const output = await promisified([config]);
|
|
168
169
|
if (node_worker_threads_1.isMainThread) {
|
|
@@ -175,7 +176,7 @@ const internalBundle = async (actualArgs) => {
|
|
|
175
176
|
if (errors !== undefined && errors.length > 0) {
|
|
176
177
|
throw new Error(errors[0].message + '\n' + errors[0].details);
|
|
177
178
|
}
|
|
178
|
-
const publicPath = (
|
|
179
|
+
const publicPath = (_f = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.publicPath) !== null && _f !== void 0 ? _f : '/';
|
|
179
180
|
const staticHash = '/' +
|
|
180
181
|
[trimTrailingSlash(trimLeadingSlash(publicPath)), 'public']
|
|
181
182
|
.filter(Boolean)
|
|
@@ -233,11 +234,11 @@ const internalBundle = async (actualArgs) => {
|
|
|
233
234
|
}),
|
|
234
235
|
includeFavicon: true,
|
|
235
236
|
title: 'Remotion Bundle',
|
|
236
|
-
renderDefaults: (
|
|
237
|
+
renderDefaults: (_g = actualArgs.renderDefaults) !== null && _g !== void 0 ? _g : undefined,
|
|
237
238
|
publicFolderExists: `${publicPath + (publicPath.endsWith('/') ? '' : '/')}public`,
|
|
238
|
-
gitSource: (
|
|
239
|
+
gitSource: (_h = actualArgs.gitSource) !== null && _h !== void 0 ? _h : null,
|
|
239
240
|
projectName: (0, studio_shared_1.getProjectName)({
|
|
240
|
-
gitSource: (
|
|
241
|
+
gitSource: (_j = actualArgs.gitSource) !== null && _j !== void 0 ? _j : null,
|
|
241
242
|
resolvedRemotionRoot,
|
|
242
243
|
basename: node_path_1.default.basename,
|
|
243
244
|
}),
|
|
@@ -246,7 +247,7 @@ const internalBundle = async (actualArgs) => {
|
|
|
246
247
|
// Actual log level is set in setPropsAndEnv()
|
|
247
248
|
logLevel: 'info',
|
|
248
249
|
mode: 'bundle',
|
|
249
|
-
audioLatencyHint: (
|
|
250
|
+
audioLatencyHint: (_k = actualArgs.audioLatencyHint) !== null && _k !== void 0 ? _k : 'interactive',
|
|
250
251
|
});
|
|
251
252
|
node_fs_1.default.writeFileSync(node_path_1.default.join(outDir, 'index.html'), html);
|
|
252
253
|
node_fs_1.default.copyFileSync(node_path_1.default.join(__dirname, '../favicon.ico'), node_path_1.default.join(outDir, 'favicon.ico'));
|
|
@@ -259,7 +260,7 @@ exports.internalBundle = internalBundle;
|
|
|
259
260
|
* @see [Documentation](https://remotion.dev/docs/bundle)
|
|
260
261
|
*/
|
|
261
262
|
async function bundle(...args) {
|
|
262
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
263
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
263
264
|
const actualArgs = convertArgumentsIntoOptions(args);
|
|
264
265
|
const result = await (0, exports.internalBundle)({
|
|
265
266
|
bufferStateDelayInMilliseconds: (_a = actualArgs.bufferStateDelayInMilliseconds) !== null && _a !== void 0 ? _a : null,
|
|
@@ -280,6 +281,8 @@ async function bundle(...args) {
|
|
|
280
281
|
audioLatencyHint: (_q = actualArgs.audioLatencyHint) !== null && _q !== void 0 ? _q : null,
|
|
281
282
|
experimentalClientSideRenderingEnabled: (_r = actualArgs.experimentalClientSideRenderingEnabled) !== null && _r !== void 0 ? _r : false,
|
|
282
283
|
renderDefaults: (_s = actualArgs.renderDefaults) !== null && _s !== void 0 ? _s : null,
|
|
284
|
+
askAIEnabled: (_t = actualArgs.askAIEnabled) !== null && _t !== void 0 ? _t : true,
|
|
285
|
+
keyboardShortcutsEnabled: (_u = actualArgs.keyboardShortcutsEnabled) !== null && _u !== void 0 ? _u : true,
|
|
283
286
|
});
|
|
284
287
|
return result;
|
|
285
288
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import esbuild = require('esbuild');
|
|
|
2
2
|
import webpack = require('webpack');
|
|
3
3
|
export declare const BundlerInternals: {
|
|
4
4
|
esbuild: typeof esbuild;
|
|
5
|
-
webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, }: {
|
|
5
|
+
webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, }: {
|
|
6
6
|
entry: string;
|
|
7
7
|
userDefinedComponent: string;
|
|
8
8
|
outDir: string | null;
|
|
@@ -15,6 +15,7 @@ export declare const BundlerInternals: {
|
|
|
15
15
|
bufferStateDelayInMilliseconds: number | null;
|
|
16
16
|
remotionRoot: string;
|
|
17
17
|
poll: number | null;
|
|
18
|
+
askAIEnabled: boolean;
|
|
18
19
|
experimentalClientSideRenderingEnabled: boolean;
|
|
19
20
|
}) => Promise<[string, import("./webpack-config").WebpackConfiguration]>;
|
|
20
21
|
indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, logLevel, mode, }: {
|
package/dist/webpack-config.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Configuration } from 'webpack';
|
|
2
2
|
export type WebpackConfiguration = Configuration;
|
|
3
3
|
export type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration | Promise<WebpackConfiguration>;
|
|
4
|
-
export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, }: {
|
|
4
|
+
export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, }: {
|
|
5
5
|
entry: string;
|
|
6
6
|
userDefinedComponent: string;
|
|
7
7
|
outDir: string | null;
|
|
@@ -14,5 +14,6 @@ export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, envi
|
|
|
14
14
|
bufferStateDelayInMilliseconds: number | null;
|
|
15
15
|
remotionRoot: string;
|
|
16
16
|
poll: number | null;
|
|
17
|
+
askAIEnabled: boolean;
|
|
17
18
|
experimentalClientSideRenderingEnabled: boolean;
|
|
18
19
|
}) => Promise<[string, WebpackConfiguration]>;
|
package/dist/webpack-config.js
CHANGED
|
@@ -63,7 +63,7 @@ const shouldUseReactDomClient = no_react_1.NoReactInternals.ENABLE_V5_BREAKING_C
|
|
|
63
63
|
function truthy(value) {
|
|
64
64
|
return Boolean(value);
|
|
65
65
|
}
|
|
66
|
-
const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, }) => {
|
|
66
|
+
const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, experimentalClientSideRenderingEnabled, askAIEnabled, }) => {
|
|
67
67
|
const esbuildLoaderOptions = {
|
|
68
68
|
target: 'chrome85',
|
|
69
69
|
loader: 'tsx',
|
|
@@ -74,6 +74,7 @@ const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment,
|
|
|
74
74
|
const isBun = typeof Bun !== 'undefined';
|
|
75
75
|
const define = new webpack_1.default.DefinePlugin({
|
|
76
76
|
'process.env.MAX_TIMELINE_TRACKS': maxTimelineTracks,
|
|
77
|
+
'process.env.ASK_AI_ENABLED': askAIEnabled,
|
|
77
78
|
'process.env.KEYBOARD_SHORTCUTS_ENABLED': keyboardShortcutsEnabled,
|
|
78
79
|
'process.env.BUFFER_STATE_DELAY_IN_MILLISECONDS': bufferStateDelayInMilliseconds,
|
|
79
80
|
'process.env.EXPERIMENTAL_CLIENT_SIDE_RENDERING_ENABLED': 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.409",
|
|
7
7
|
"description": "Bundle Remotion compositions using Webpack",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"css-loader": "5.2.7",
|
|
23
23
|
"esbuild": "0.25.0",
|
|
24
24
|
"react-refresh": "0.9.0",
|
|
25
|
-
"remotion": "4.0.
|
|
26
|
-
"@remotion/studio": "4.0.
|
|
27
|
-
"@remotion/studio-shared": "4.0.
|
|
28
|
-
"@remotion/media-parser": "4.0.
|
|
25
|
+
"remotion": "4.0.409",
|
|
26
|
+
"@remotion/studio": "4.0.409",
|
|
27
|
+
"@remotion/studio-shared": "4.0.409",
|
|
28
|
+
"@remotion/media-parser": "4.0.409",
|
|
29
29
|
"style-loader": "4.0.0",
|
|
30
30
|
"source-map": "0.7.3",
|
|
31
31
|
"webpack": "5.96.1"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"react": "19.2.3",
|
|
39
39
|
"react-dom": "19.2.3",
|
|
40
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
40
|
+
"@remotion/eslint-config-internal": "4.0.409",
|
|
41
41
|
"eslint": "9.19.0"
|
|
42
42
|
},
|
|
43
43
|
"keywords": [
|