@remotion/bundler 4.0.396 → 4.0.397
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 +5 -2
- package/dist/bundle.js +12 -9
- package/dist/index.d.ts +4 -1
- package/package.json +6 -6
package/dist/bundle.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GitSource } from '@remotion/studio-shared';
|
|
1
|
+
import type { GitSource, RenderDefaults } from '@remotion/studio-shared';
|
|
2
2
|
import webpack from 'webpack';
|
|
3
3
|
import type { WebpackOverrideFn } from './webpack-config';
|
|
4
4
|
export type MandatoryLegacyBundleOptions = {
|
|
@@ -12,11 +12,12 @@ export type MandatoryLegacyBundleOptions = {
|
|
|
12
12
|
onSymlinkDetected: (path: string) => void;
|
|
13
13
|
};
|
|
14
14
|
export type LegacyBundleOptions = Partial<MandatoryLegacyBundleOptions>;
|
|
15
|
-
export declare const getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, }: {
|
|
15
|
+
export declare const getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, }: {
|
|
16
16
|
outDir: string;
|
|
17
17
|
entryPoint: string;
|
|
18
18
|
resolvedRemotionRoot: string;
|
|
19
19
|
bufferStateDelayInMilliseconds: number | null;
|
|
20
|
+
experimentalClientSideRenderingEnabled: boolean;
|
|
20
21
|
maxTimelineTracks: number | null;
|
|
21
22
|
onProgress?: (progress: number) => void;
|
|
22
23
|
options?: LegacyBundleOptions;
|
|
@@ -30,6 +31,8 @@ type NewBundleOptions = {
|
|
|
30
31
|
maxTimelineTracks: number | null;
|
|
31
32
|
bufferStateDelayInMilliseconds: number | null;
|
|
32
33
|
audioLatencyHint: AudioContextLatencyCategory | null;
|
|
34
|
+
experimentalClientSideRenderingEnabled: boolean;
|
|
35
|
+
renderDefaults: RenderDefaults | null;
|
|
33
36
|
};
|
|
34
37
|
type MandatoryBundleOptions = {
|
|
35
38
|
entryPoint: string;
|
package/dist/bundle.js
CHANGED
|
@@ -69,7 +69,7 @@ const trimTrailingSlash = (p) => {
|
|
|
69
69
|
}
|
|
70
70
|
return p;
|
|
71
71
|
};
|
|
72
|
-
const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, }) => {
|
|
72
|
+
const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, }) => {
|
|
73
73
|
var _a, _b;
|
|
74
74
|
return (0, webpack_config_1.webpackConfig)({
|
|
75
75
|
entry: node_path_1.default.join(require.resolve('@remotion/studio/renderEntry'), '..', 'esm', 'renderEntry.mjs'),
|
|
@@ -86,7 +86,7 @@ const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, optio
|
|
|
86
86
|
keyboardShortcutsEnabled: true,
|
|
87
87
|
bufferStateDelayInMilliseconds,
|
|
88
88
|
poll: null,
|
|
89
|
-
experimentalClientSideRenderingEnabled
|
|
89
|
+
experimentalClientSideRenderingEnabled,
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
92
|
exports.getConfig = getConfig;
|
|
@@ -137,7 +137,7 @@ const validateEntryPoint = async (entryPoint) => {
|
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
139
|
const internalBundle = async (actualArgs) => {
|
|
140
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
140
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
141
141
|
const entryPoint = node_path_1.default.resolve(process.cwd(), actualArgs.entryPoint);
|
|
142
142
|
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
143
|
if (!actualArgs.ignoreRegisterRootWarning) {
|
|
@@ -162,6 +162,7 @@ const internalBundle = async (actualArgs) => {
|
|
|
162
162
|
// Should be null to keep cache hash working
|
|
163
163
|
bufferStateDelayInMilliseconds: (_e = actualArgs.bufferStateDelayInMilliseconds) !== null && _e !== void 0 ? _e : null,
|
|
164
164
|
maxTimelineTracks: (_f = actualArgs.maxTimelineTracks) !== null && _f !== void 0 ? _f : null,
|
|
165
|
+
experimentalClientSideRenderingEnabled: (_g = actualArgs.experimentalClientSideRenderingEnabled) !== null && _g !== void 0 ? _g : false,
|
|
165
166
|
});
|
|
166
167
|
const output = await promisified([config]);
|
|
167
168
|
if (node_worker_threads_1.isMainThread) {
|
|
@@ -174,7 +175,7 @@ const internalBundle = async (actualArgs) => {
|
|
|
174
175
|
if (errors !== undefined && errors.length > 0) {
|
|
175
176
|
throw new Error(errors[0].message + '\n' + errors[0].details);
|
|
176
177
|
}
|
|
177
|
-
const publicPath = (
|
|
178
|
+
const publicPath = (_h = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.publicPath) !== null && _h !== void 0 ? _h : '/';
|
|
178
179
|
const staticHash = '/' +
|
|
179
180
|
[trimTrailingSlash(trimLeadingSlash(publicPath)), 'public']
|
|
180
181
|
.filter(Boolean)
|
|
@@ -232,11 +233,11 @@ const internalBundle = async (actualArgs) => {
|
|
|
232
233
|
}),
|
|
233
234
|
includeFavicon: true,
|
|
234
235
|
title: 'Remotion Bundle',
|
|
235
|
-
renderDefaults: undefined,
|
|
236
|
+
renderDefaults: (_j = actualArgs.renderDefaults) !== null && _j !== void 0 ? _j : undefined,
|
|
236
237
|
publicFolderExists: `${publicPath + (publicPath.endsWith('/') ? '' : '/')}public`,
|
|
237
|
-
gitSource: (
|
|
238
|
+
gitSource: (_k = actualArgs.gitSource) !== null && _k !== void 0 ? _k : null,
|
|
238
239
|
projectName: (0, studio_shared_1.getProjectName)({
|
|
239
|
-
gitSource: (
|
|
240
|
+
gitSource: (_l = actualArgs.gitSource) !== null && _l !== void 0 ? _l : null,
|
|
240
241
|
resolvedRemotionRoot,
|
|
241
242
|
basename: node_path_1.default.basename,
|
|
242
243
|
}),
|
|
@@ -245,7 +246,7 @@ const internalBundle = async (actualArgs) => {
|
|
|
245
246
|
// Actual log level is set in setPropsAndEnv()
|
|
246
247
|
logLevel: 'info',
|
|
247
248
|
mode: 'bundle',
|
|
248
|
-
audioLatencyHint: (
|
|
249
|
+
audioLatencyHint: (_m = actualArgs.audioLatencyHint) !== null && _m !== void 0 ? _m : 'interactive',
|
|
249
250
|
});
|
|
250
251
|
node_fs_1.default.writeFileSync(node_path_1.default.join(outDir, 'index.html'), html);
|
|
251
252
|
node_fs_1.default.copyFileSync(node_path_1.default.join(__dirname, '../favicon.ico'), node_path_1.default.join(outDir, 'favicon.ico'));
|
|
@@ -258,7 +259,7 @@ exports.internalBundle = internalBundle;
|
|
|
258
259
|
* @see [Documentation](https://remotion.dev/docs/bundle)
|
|
259
260
|
*/
|
|
260
261
|
async function bundle(...args) {
|
|
261
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
262
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
262
263
|
const actualArgs = convertArgumentsIntoOptions(args);
|
|
263
264
|
const result = await (0, exports.internalBundle)({
|
|
264
265
|
bufferStateDelayInMilliseconds: (_a = actualArgs.bufferStateDelayInMilliseconds) !== null && _a !== void 0 ? _a : null,
|
|
@@ -277,6 +278,8 @@ async function bundle(...args) {
|
|
|
277
278
|
rootDir: (_o = actualArgs.rootDir) !== null && _o !== void 0 ? _o : null,
|
|
278
279
|
webpackOverride: (_p = actualArgs.webpackOverride) !== null && _p !== void 0 ? _p : ((f) => f),
|
|
279
280
|
audioLatencyHint: (_q = actualArgs.audioLatencyHint) !== null && _q !== void 0 ? _q : null,
|
|
281
|
+
experimentalClientSideRenderingEnabled: (_r = actualArgs.experimentalClientSideRenderingEnabled) !== null && _r !== void 0 ? _r : false,
|
|
282
|
+
renderDefaults: (_s = actualArgs.renderDefaults) !== null && _s !== void 0 ? _s : null,
|
|
280
283
|
});
|
|
281
284
|
return result;
|
|
282
285
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -42,11 +42,12 @@ export declare const BundlerInternals: {
|
|
|
42
42
|
}) => string;
|
|
43
43
|
cacheExists: (remotionRoot: string, environment: "development" | "production", hash: string) => "exists" | "other-exists" | "does-not-exist";
|
|
44
44
|
clearCache: (remotionRoot: string, env: "development" | "production") => Promise<void>;
|
|
45
|
-
getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, }: {
|
|
45
|
+
getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, }: {
|
|
46
46
|
outDir: string;
|
|
47
47
|
entryPoint: string;
|
|
48
48
|
resolvedRemotionRoot: string;
|
|
49
49
|
bufferStateDelayInMilliseconds: number | null;
|
|
50
|
+
experimentalClientSideRenderingEnabled: boolean;
|
|
50
51
|
maxTimelineTracks: number | null;
|
|
51
52
|
onProgress?: (progress: number) => void;
|
|
52
53
|
options?: import("./bundle").LegacyBundleOptions;
|
|
@@ -70,6 +71,8 @@ export declare const BundlerInternals: {
|
|
|
70
71
|
maxTimelineTracks: number | null;
|
|
71
72
|
bufferStateDelayInMilliseconds: number | null;
|
|
72
73
|
audioLatencyHint: AudioContextLatencyCategory | null;
|
|
74
|
+
experimentalClientSideRenderingEnabled: boolean;
|
|
75
|
+
renderDefaults: import("@remotion/studio-shared").RenderDefaults | null;
|
|
73
76
|
} & import("./bundle").MandatoryLegacyBundleOptions) => Promise<string>;
|
|
74
77
|
};
|
|
75
78
|
export type { GitSource } from '@remotion/studio-shared';
|
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.397",
|
|
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.397",
|
|
26
|
+
"@remotion/studio": "4.0.397",
|
|
27
|
+
"@remotion/studio-shared": "4.0.397",
|
|
28
|
+
"@remotion/media-parser": "4.0.397",
|
|
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.397",
|
|
41
41
|
"eslint": "9.19.0"
|
|
42
42
|
},
|
|
43
43
|
"keywords": [
|