@remotion/bundler 4.0.469 → 4.0.470
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.js +11 -10
- package/dist/index-html.d.ts +2 -1
- package/dist/index-html.js +3 -1
- package/dist/index.d.ts +2 -1
- package/package.json +7 -7
package/dist/bundle.js
CHANGED
|
@@ -160,14 +160,14 @@ const validateEntryPoint = async (entryPoint) => {
|
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
162
|
const internalBundle = async (actualArgs) => {
|
|
163
|
-
var _a;
|
|
164
|
-
var
|
|
163
|
+
var _a, _b;
|
|
164
|
+
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
165
165
|
const entryPoint = node_path_1.default.resolve(process.cwd(), actualArgs.entryPoint);
|
|
166
|
-
const resolvedRemotionRoot = (
|
|
166
|
+
const resolvedRemotionRoot = (_d = (_c = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.rootDir) !== null && _c !== void 0 ? _c : findClosestPackageJsonFolder(entryPoint)) !== null && _d !== void 0 ? _d : process.cwd();
|
|
167
167
|
if (!actualArgs.ignoreRegisterRootWarning) {
|
|
168
168
|
await validateEntryPoint(entryPoint);
|
|
169
169
|
}
|
|
170
|
-
const outDir = await prepareOutDir((
|
|
170
|
+
const outDir = await prepareOutDir((_e = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.outDir) !== null && _e !== void 0 ? _e : null);
|
|
171
171
|
(_a = actualArgs.onDirectoryCreated) === null || _a === void 0 ? void 0 : _a.call(actualArgs, outDir);
|
|
172
172
|
// The config might use an override which might use
|
|
173
173
|
// `process.cwd()`. The context should always be the Remotion root.
|
|
@@ -184,7 +184,7 @@ const internalBundle = async (actualArgs) => {
|
|
|
184
184
|
onProgress,
|
|
185
185
|
options,
|
|
186
186
|
// Should be null to keep cache hash working
|
|
187
|
-
bufferStateDelayInMilliseconds: (
|
|
187
|
+
bufferStateDelayInMilliseconds: (_f = actualArgs.bufferStateDelayInMilliseconds) !== null && _f !== void 0 ? _f : null,
|
|
188
188
|
maxTimelineTracks: actualArgs.maxTimelineTracks,
|
|
189
189
|
experimentalClientSideRenderingEnabled: actualArgs.experimentalClientSideRenderingEnabled,
|
|
190
190
|
});
|
|
@@ -239,7 +239,7 @@ const internalBundle = async (actualArgs) => {
|
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
const publicPath = (
|
|
242
|
+
const publicPath = (_g = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.publicPath) !== null && _g !== void 0 ? _g : '/';
|
|
243
243
|
const staticHash = '/' +
|
|
244
244
|
[trimTrailingSlash(trimLeadingSlash(publicPath)), 'public']
|
|
245
245
|
.filter(Boolean)
|
|
@@ -302,11 +302,11 @@ const internalBundle = async (actualArgs) => {
|
|
|
302
302
|
}),
|
|
303
303
|
includeFavicon: true,
|
|
304
304
|
title: 'Remotion Bundle',
|
|
305
|
-
renderDefaults: (
|
|
305
|
+
renderDefaults: (_h = actualArgs.renderDefaults) !== null && _h !== void 0 ? _h : undefined,
|
|
306
306
|
publicFolderExists: `${publicPath + (publicPath.endsWith('/') ? '' : '/')}public`,
|
|
307
|
-
gitSource: (
|
|
307
|
+
gitSource: (_j = actualArgs.gitSource) !== null && _j !== void 0 ? _j : null,
|
|
308
308
|
projectName: (0, studio_shared_1.getProjectName)({
|
|
309
|
-
gitSource: (
|
|
309
|
+
gitSource: (_k = actualArgs.gitSource) !== null && _k !== void 0 ? _k : null,
|
|
310
310
|
resolvedRemotionRoot,
|
|
311
311
|
basename: node_path_1.default.basename,
|
|
312
312
|
}),
|
|
@@ -315,7 +315,8 @@ const internalBundle = async (actualArgs) => {
|
|
|
315
315
|
// Actual log level is set in setPropsAndEnv()
|
|
316
316
|
logLevel: 'info',
|
|
317
317
|
mode: 'bundle',
|
|
318
|
-
audioLatencyHint: (
|
|
318
|
+
audioLatencyHint: (_l = actualArgs.audioLatencyHint) !== null && _l !== void 0 ? _l : 'playback',
|
|
319
|
+
sampleRate: (_m = (_b = actualArgs.renderDefaults) === null || _b === void 0 ? void 0 : _b.sampleRate) !== null && _m !== void 0 ? _m : 48000,
|
|
319
320
|
});
|
|
320
321
|
node_fs_1.default.writeFileSync(node_path_1.default.join(outDir, 'index.html'), html);
|
|
321
322
|
node_fs_1.default.copyFileSync(node_path_1.default.join(__dirname, '../favicon.ico'), node_path_1.default.join(outDir, 'favicon.ico'));
|
package/dist/index-html.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GitSource, PackageManager, RenderDefaults } from '@remotion/studio-shared';
|
|
2
2
|
import type { StaticFile } from 'remotion';
|
|
3
|
-
export declare const indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, logLevel, mode, }: {
|
|
3
|
+
export declare const indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, sampleRate, logLevel, mode, }: {
|
|
4
4
|
staticHash: string;
|
|
5
5
|
publicPath: string;
|
|
6
6
|
editorName: string | null;
|
|
@@ -12,6 +12,7 @@ export declare const indexHtml: ({ publicPath, editorName, inputProps, envVariab
|
|
|
12
12
|
completedClientRenders?: unknown;
|
|
13
13
|
numberOfAudioTags: number;
|
|
14
14
|
audioLatencyHint: AudioContextLatencyCategory;
|
|
15
|
+
sampleRate: number | null;
|
|
15
16
|
publicFiles: StaticFile[];
|
|
16
17
|
publicFolderExists: string | null;
|
|
17
18
|
includeFavicon: boolean;
|
package/dist/index-html.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.indexHtml = void 0;
|
|
4
4
|
const remotion_1 = require("remotion");
|
|
5
|
-
const indexHtml = ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, logLevel, mode, }) =>
|
|
5
|
+
const indexHtml = ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, sampleRate, logLevel, mode, }) =>
|
|
6
6
|
// Must setup remotion_editorName and remotion.remotion_projectName before bundle.js is loaded
|
|
7
7
|
`
|
|
8
8
|
<!DOCTYPE html>
|
|
@@ -18,6 +18,8 @@ const indexHtml = ({ publicPath, editorName, inputProps, envVariables, staticHas
|
|
|
18
18
|
<body>
|
|
19
19
|
<script>window.remotion_numberOfAudioTags = ${numberOfAudioTags};</script>
|
|
20
20
|
<script>window.remotion_audioLatencyHint = "${audioLatencyHint}";</script>
|
|
21
|
+
<script>window.remotion_sampleRate = ${sampleRate};</script>
|
|
22
|
+
<script>window.remotion_previewSampleRate = ${sampleRate};</script>
|
|
21
23
|
${mode === 'dev' ? `<script>window.remotion_logLevel = "${logLevel}";</script>` : ''}
|
|
22
24
|
<script>window.remotion_staticBase = "${staticHash}";</script>
|
|
23
25
|
${editorName
|
package/dist/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare const BundlerInternals: {
|
|
|
38
38
|
extraPlugins: any[];
|
|
39
39
|
}) => Promise<[string, import("@rspack/core").RspackOptions]>;
|
|
40
40
|
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, logLevel, mode, }: {
|
|
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, }: {
|
|
42
42
|
staticHash: string;
|
|
43
43
|
publicPath: string;
|
|
44
44
|
editorName: string | null;
|
|
@@ -50,6 +50,7 @@ export declare const BundlerInternals: {
|
|
|
50
50
|
completedClientRenders?: unknown;
|
|
51
51
|
numberOfAudioTags: number;
|
|
52
52
|
audioLatencyHint: AudioContextLatencyCategory;
|
|
53
|
+
sampleRate: number | null;
|
|
53
54
|
publicFiles: import("remotion").StaticFile[];
|
|
54
55
|
publicFolderExists: string | null;
|
|
55
56
|
includeFavicon: boolean;
|
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.470",
|
|
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.0",
|
|
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.470",
|
|
28
|
+
"@remotion/studio": "4.0.470",
|
|
29
|
+
"@remotion/studio-shared": "4.0.470",
|
|
30
|
+
"@remotion/timeline-utils": "4.0.470",
|
|
31
|
+
"@remotion/media-parser": "4.0.470",
|
|
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.470",
|
|
43
43
|
"eslint": "9.19.0",
|
|
44
44
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
45
45
|
},
|