@remotion/bundler 3.2.1 → 3.2.2
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 +1 -0
- package/dist/index-html.d.ts +2 -1
- package/dist/index-html.js +4 -2
- package/dist/index.d.ts +2 -1
- package/dist/setup-environment.js +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -98,6 +98,7 @@ const bundle = async (entryPoint, onProgressUpdate, options) => {
|
|
|
98
98
|
editorName: null,
|
|
99
99
|
inputProps: null,
|
|
100
100
|
remotionRoot: resolvedRemotionRoot,
|
|
101
|
+
previewServerCommand: null,
|
|
101
102
|
});
|
|
102
103
|
fs_1.default.writeFileSync(path_1.default.join(outDir, 'index.html'), html);
|
|
103
104
|
return outDir;
|
package/dist/index-html.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export declare const indexHtml: ({ baseDir, editorName, inputProps, staticHash, remotionRoot, }: {
|
|
1
|
+
export declare const indexHtml: ({ baseDir, editorName, inputProps, staticHash, remotionRoot, previewServerCommand, }: {
|
|
2
2
|
staticHash: string;
|
|
3
3
|
baseDir: string;
|
|
4
4
|
editorName: string | null;
|
|
5
5
|
inputProps: object | null;
|
|
6
6
|
remotionRoot: string;
|
|
7
|
+
previewServerCommand: string | null;
|
|
7
8
|
}) => string;
|
package/dist/index-html.js
CHANGED
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.indexHtml = void 0;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
|
-
const indexHtml = ({ baseDir, editorName, inputProps, staticHash, remotionRoot, }) => `
|
|
8
|
+
const indexHtml = ({ baseDir, editorName, inputProps, staticHash, remotionRoot, previewServerCommand, }) => `
|
|
9
9
|
<!DOCTYPE html>
|
|
10
10
|
<html lang="en">
|
|
11
11
|
<head>
|
|
@@ -24,8 +24,9 @@ const indexHtml = ({ baseDir, editorName, inputProps, staticHash, remotionRoot,
|
|
|
24
24
|
: '<script>window.remotion_editorName = null;</script>'}
|
|
25
25
|
<script>window.remotion_projectName = ${JSON.stringify(path_1.default.basename(remotionRoot))};</script>
|
|
26
26
|
<script>window.remotion_cwd = ${JSON.stringify(remotionRoot)};</script>
|
|
27
|
+
<script>window.remotion_previewServerCommand = ${previewServerCommand ? JSON.stringify(previewServerCommand) : 'null'};</script>
|
|
27
28
|
${inputProps
|
|
28
|
-
?
|
|
29
|
+
? `<script>window.remotion_inputProps = ${JSON.stringify(JSON.stringify(inputProps))};</script>
|
|
29
30
|
`
|
|
30
31
|
: ''}
|
|
31
32
|
|
|
@@ -37,6 +38,7 @@ const indexHtml = ({ baseDir, editorName, inputProps, staticHash, remotionRoot,
|
|
|
37
38
|
<div id="menuportal-4"></div>
|
|
38
39
|
<div id="menuportal-5"></div>
|
|
39
40
|
<div id="remotion-error-overlay"></div>
|
|
41
|
+
<div id="server-disconnected-overlay"></div>
|
|
40
42
|
<script src="${baseDir}bundle.js"></script>
|
|
41
43
|
</body>
|
|
42
44
|
</html>
|
package/dist/index.d.ts
CHANGED
|
@@ -15,12 +15,13 @@ export declare const BundlerInternals: {
|
|
|
15
15
|
entryPoints: string[];
|
|
16
16
|
remotionRoot: string;
|
|
17
17
|
}) => [string, webpack.Configuration];
|
|
18
|
-
indexHtml: ({ baseDir, editorName, inputProps, staticHash, remotionRoot, }: {
|
|
18
|
+
indexHtml: ({ baseDir, editorName, inputProps, staticHash, remotionRoot, previewServerCommand, }: {
|
|
19
19
|
staticHash: string;
|
|
20
20
|
baseDir: string;
|
|
21
21
|
editorName: string | null;
|
|
22
22
|
inputProps: object | null;
|
|
23
23
|
remotionRoot: string;
|
|
24
|
+
previewServerCommand: string | null;
|
|
24
25
|
}) => string;
|
|
25
26
|
cacheExists: (remotionRoot: string, environment: "development" | "production", hash: string) => "exists" | "other-exists" | "does-not-exist";
|
|
26
27
|
clearCache: (remotionRoot: string) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/bundler",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "Bundler for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"css-loader": "5.2.7",
|
|
27
27
|
"esbuild": "0.14.19",
|
|
28
28
|
"react-refresh": "0.9.0",
|
|
29
|
-
"remotion": "3.2.
|
|
29
|
+
"remotion": "3.2.2",
|
|
30
30
|
"style-loader": "2.0.0",
|
|
31
31
|
"webpack": "5.72.0"
|
|
32
32
|
},
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "8e5f2d05adf7ddd3824ea734fa888b4b4761f364"
|
|
67
67
|
}
|