@remotion/bundler 4.0.251 → 4.0.253
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 +3 -0
- package/dist/index-html.d.ts +4 -2
- package/dist/index-html.js +2 -1
- package/dist/index.d.ts +3 -1
- package/package.json +5 -5
- package/renderEntry.tsx +8 -2
package/dist/bundle.js
CHANGED
|
@@ -232,6 +232,9 @@ const internalBundle = async (actualArgs) => {
|
|
|
232
232
|
}),
|
|
233
233
|
installedDependencies: null,
|
|
234
234
|
packageManager: 'unknown',
|
|
235
|
+
// Actual log level is set in setPropsAndEnv()
|
|
236
|
+
logLevel: 'info',
|
|
237
|
+
mode: 'bundle',
|
|
235
238
|
});
|
|
236
239
|
node_fs_1.default.writeFileSync(node_path_1.default.join(outDir, 'index.html'), html);
|
|
237
240
|
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, InstallablePackage, PackageManager, RenderDefaults } from '@remotion/studio-shared';
|
|
2
|
-
import type { 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, }: {
|
|
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, }: {
|
|
4
4
|
staticHash: string;
|
|
5
5
|
publicPath: string;
|
|
6
6
|
editorName: string | null;
|
|
@@ -19,4 +19,6 @@ export declare const indexHtml: ({ publicPath, editorName, inputProps, envVariab
|
|
|
19
19
|
projectName: string;
|
|
20
20
|
installedDependencies: InstallablePackage[] | null;
|
|
21
21
|
packageManager: PackageManager | "unknown";
|
|
22
|
+
logLevel: LogLevel;
|
|
23
|
+
mode: "dev" | "bundle";
|
|
22
24
|
}) => string;
|
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, }) =>
|
|
5
|
+
const indexHtml = ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, 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
|
+
${mode === 'dev' ? `<script>window.remotion_logLevel = "${logLevel}";</script>` : ''}
|
|
20
21
|
<script>window.remotion_staticBase = "${staticHash}";</script>
|
|
21
22
|
${editorName
|
|
22
23
|
? `<script>window.remotion_editorName = "${editorName}";</script>`
|
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, }: {
|
|
19
|
+
indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, logLevel, mode, }: {
|
|
20
20
|
staticHash: string;
|
|
21
21
|
publicPath: string;
|
|
22
22
|
editorName: string | null;
|
|
@@ -35,6 +35,8 @@ export declare const BundlerInternals: {
|
|
|
35
35
|
projectName: string;
|
|
36
36
|
installedDependencies: import("@remotion/studio-shared").InstallablePackage[] | null;
|
|
37
37
|
packageManager: import("@remotion/studio-shared").PackageManager | "unknown";
|
|
38
|
+
logLevel: import("remotion").LogLevel;
|
|
39
|
+
mode: "dev" | "bundle";
|
|
38
40
|
}) => string;
|
|
39
41
|
cacheExists: (remotionRoot: string, environment: "development" | "production", hash: string) => "exists" | "other-exists" | "does-not-exist";
|
|
40
42
|
clearCache: (remotionRoot: string, env: "development" | "production") => Promise<void>;
|
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.253",
|
|
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": "2.0.0",
|
|
26
26
|
"source-map": "0.7.3",
|
|
27
27
|
"webpack": "5.96.1",
|
|
28
|
-
"
|
|
29
|
-
"remotion": "4.0.
|
|
30
|
-
"@remotion/studio
|
|
28
|
+
"remotion": "4.0.253",
|
|
29
|
+
"@remotion/studio-shared": "4.0.253",
|
|
30
|
+
"@remotion/studio": "4.0.253"
|
|
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.14.0",
|
|
40
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
40
|
+
"@remotion/eslint-config-internal": "4.0.253"
|
|
41
41
|
},
|
|
42
42
|
"keywords": [
|
|
43
43
|
"remotion",
|
package/renderEntry.tsx
CHANGED
|
@@ -237,7 +237,10 @@ const renderContent = (Root: React.FC) => {
|
|
|
237
237
|
|
|
238
238
|
if (bundleMode.type === 'composition') {
|
|
239
239
|
const markup = (
|
|
240
|
-
<Internals.RemotionRoot
|
|
240
|
+
<Internals.RemotionRoot
|
|
241
|
+
logLevel={window.remotion_logLevel}
|
|
242
|
+
numberOfAudioTags={0}
|
|
243
|
+
>
|
|
241
244
|
<Root />
|
|
242
245
|
<GetVideo state={bundleMode} />
|
|
243
246
|
</Internals.RemotionRoot>
|
|
@@ -248,7 +251,10 @@ const renderContent = (Root: React.FC) => {
|
|
|
248
251
|
|
|
249
252
|
if (bundleMode.type === 'evaluation') {
|
|
250
253
|
const markup = (
|
|
251
|
-
<Internals.RemotionRoot
|
|
254
|
+
<Internals.RemotionRoot
|
|
255
|
+
logLevel={window.remotion_logLevel}
|
|
256
|
+
numberOfAudioTags={0}
|
|
257
|
+
>
|
|
252
258
|
<Root />
|
|
253
259
|
<GetVideo state={bundleMode} />
|
|
254
260
|
</Internals.RemotionRoot>
|