@remotion/bundler 4.0.301 → 4.0.303
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 +4 -2
- package/dist/index-html.d.ts +2 -1
- package/dist/index-html.js +2 -1
- package/dist/index.d.ts +3 -1
- package/package.json +5 -5
package/dist/bundle.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ type NewBundleOptions = {
|
|
|
29
29
|
gitSource: GitSource | null;
|
|
30
30
|
maxTimelineTracks: number | null;
|
|
31
31
|
bufferStateDelayInMilliseconds: number | null;
|
|
32
|
+
audioLatencyHint: AudioContextLatencyCategory | null;
|
|
32
33
|
};
|
|
33
34
|
type MandatoryBundleOptions = {
|
|
34
35
|
entryPoint: string;
|
package/dist/bundle.js
CHANGED
|
@@ -136,7 +136,7 @@ const validateEntryPoint = async (entryPoint) => {
|
|
|
136
136
|
}
|
|
137
137
|
};
|
|
138
138
|
const internalBundle = async (actualArgs) => {
|
|
139
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
139
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
140
140
|
const entryPoint = node_path_1.default.resolve(process.cwd(), actualArgs.entryPoint);
|
|
141
141
|
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();
|
|
142
142
|
if (!actualArgs.ignoreRegisterRootWarning) {
|
|
@@ -244,6 +244,7 @@ const internalBundle = async (actualArgs) => {
|
|
|
244
244
|
// Actual log level is set in setPropsAndEnv()
|
|
245
245
|
logLevel: 'info',
|
|
246
246
|
mode: 'bundle',
|
|
247
|
+
audioLatencyHint: (_k = actualArgs.audioLatencyHint) !== null && _k !== void 0 ? _k : 'interactive',
|
|
247
248
|
});
|
|
248
249
|
node_fs_1.default.writeFileSync(node_path_1.default.join(outDir, 'index.html'), html);
|
|
249
250
|
node_fs_1.default.copyFileSync(node_path_1.default.join(__dirname, '../favicon.ico'), node_path_1.default.join(outDir, 'favicon.ico'));
|
|
@@ -256,7 +257,7 @@ exports.internalBundle = internalBundle;
|
|
|
256
257
|
* @see [Documentation](https://remotion.dev/docs/bundle)
|
|
257
258
|
*/
|
|
258
259
|
async function bundle(...args) {
|
|
259
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
260
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
260
261
|
const actualArgs = convertArgumentsIntoOptions(args);
|
|
261
262
|
const result = await (0, exports.internalBundle)({
|
|
262
263
|
bufferStateDelayInMilliseconds: (_a = actualArgs.bufferStateDelayInMilliseconds) !== null && _a !== void 0 ? _a : null,
|
|
@@ -274,6 +275,7 @@ async function bundle(...args) {
|
|
|
274
275
|
publicPath: (_m = actualArgs.publicPath) !== null && _m !== void 0 ? _m : null,
|
|
275
276
|
rootDir: (_o = actualArgs.rootDir) !== null && _o !== void 0 ? _o : null,
|
|
276
277
|
webpackOverride: (_p = actualArgs.webpackOverride) !== null && _p !== void 0 ? _p : ((f) => f),
|
|
278
|
+
audioLatencyHint: (_q = actualArgs.audioLatencyHint) !== null && _q !== void 0 ? _q : null,
|
|
277
279
|
});
|
|
278
280
|
return result;
|
|
279
281
|
}
|
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 { LogLevel, StaticFile } from 'remotion';
|
|
3
|
-
export declare const indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, logLevel, mode, }: {
|
|
3
|
+
export declare const indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, logLevel, mode, }: {
|
|
4
4
|
staticHash: string;
|
|
5
5
|
publicPath: string;
|
|
6
6
|
editorName: string | null;
|
|
@@ -10,6 +10,7 @@ export declare const indexHtml: ({ publicPath, editorName, inputProps, envVariab
|
|
|
10
10
|
studioServerCommand: string | null;
|
|
11
11
|
renderQueue: unknown | null;
|
|
12
12
|
numberOfAudioTags: number;
|
|
13
|
+
audioLatencyHint: AudioContextLatencyCategory;
|
|
13
14
|
publicFiles: StaticFile[];
|
|
14
15
|
publicFolderExists: string | null;
|
|
15
16
|
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, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, logLevel, mode, }) =>
|
|
5
|
+
const indexHtml = ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, logLevel, mode, }) =>
|
|
6
6
|
// Must setup remotion_editorName and remotion.remotion_projectName before bundle.js is loaded
|
|
7
7
|
`
|
|
8
8
|
<!DOCTYPE html>
|
|
@@ -17,6 +17,7 @@ const indexHtml = ({ publicPath, editorName, inputProps, envVariables, staticHas
|
|
|
17
17
|
</head>
|
|
18
18
|
<body>
|
|
19
19
|
<script>window.remotion_numberOfAudioTags = ${numberOfAudioTags};</script>
|
|
20
|
+
<script>window.remotion_audioLatencyHint = "${audioLatencyHint}";</script>
|
|
20
21
|
${mode === 'dev' ? `<script>window.remotion_logLevel = "${logLevel}";</script>` : ''}
|
|
21
22
|
<script>window.remotion_staticBase = "${staticHash}";</script>
|
|
22
23
|
${editorName
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const BundlerInternals: {
|
|
|
16
16
|
remotionRoot: string;
|
|
17
17
|
poll: number | null;
|
|
18
18
|
}) => Promise<[string, import("./webpack-config").WebpackConfiguration]>;
|
|
19
|
-
indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, logLevel, mode, }: {
|
|
19
|
+
indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, logLevel, mode, }: {
|
|
20
20
|
staticHash: string;
|
|
21
21
|
publicPath: string;
|
|
22
22
|
editorName: string | null;
|
|
@@ -26,6 +26,7 @@ export declare const BundlerInternals: {
|
|
|
26
26
|
studioServerCommand: string | null;
|
|
27
27
|
renderQueue: unknown | null;
|
|
28
28
|
numberOfAudioTags: number;
|
|
29
|
+
audioLatencyHint: AudioContextLatencyCategory;
|
|
29
30
|
publicFiles: import("remotion").StaticFile[];
|
|
30
31
|
publicFolderExists: string | null;
|
|
31
32
|
includeFavicon: boolean;
|
|
@@ -67,6 +68,7 @@ export declare const BundlerInternals: {
|
|
|
67
68
|
gitSource: import("@remotion/studio-shared").GitSource | null;
|
|
68
69
|
maxTimelineTracks: number | null;
|
|
69
70
|
bufferStateDelayInMilliseconds: number | null;
|
|
71
|
+
audioLatencyHint: AudioContextLatencyCategory | null;
|
|
70
72
|
} & import("./bundle").MandatoryLegacyBundleOptions) => Promise<string>;
|
|
71
73
|
};
|
|
72
74
|
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.303",
|
|
7
7
|
"description": "Bundle Remotion compositions using Webpack",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"style-loader": "4.0.0",
|
|
26
26
|
"source-map": "0.7.3",
|
|
27
27
|
"webpack": "5.96.1",
|
|
28
|
-
"remotion": "4.0.
|
|
29
|
-
"@remotion/studio
|
|
30
|
-
"@remotion/studio": "4.0.
|
|
28
|
+
"remotion": "4.0.303",
|
|
29
|
+
"@remotion/studio": "4.0.303",
|
|
30
|
+
"@remotion/studio-shared": "4.0.303"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": ">=16.8.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"react": "19.0.0",
|
|
38
38
|
"react-dom": "19.0.0",
|
|
39
39
|
"eslint": "9.19.0",
|
|
40
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
40
|
+
"@remotion/eslint-config-internal": "4.0.303"
|
|
41
41
|
},
|
|
42
42
|
"keywords": [
|
|
43
43
|
"remotion",
|