@remotion/bundler 4.0.0-fastlambda.8 → 4.0.0-offthread.21
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 +7 -0
- package/dist/bundle.js +76 -0
- package/dist/dev-middleware/compatible-api.d.ts +1 -0
- package/dist/dev-middleware/is-color-supported.js +5 -1
- package/dist/dev-middleware/range-parser.d.ts +1 -1
- package/dist/error-overlay/react-overlay/utils/open-in-editor.js +5 -1
- package/dist/error-overlay/remotion-overlay/AskOnDiscord.js +1 -1
- package/dist/error-overlay/remotion-overlay/Button.js +1 -1
- package/dist/error-overlay/remotion-overlay/CodeFrame.js +2 -2
- package/dist/error-overlay/remotion-overlay/DismissButton.js +1 -1
- package/dist/error-overlay/remotion-overlay/OpenInEditor.js +1 -1
- package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js +1 -1
- package/dist/error-overlay/remotion-overlay/StackFrame.js +2 -2
- package/dist/error-overlay/remotion-overlay/Symbolicating.js +1 -1
- package/dist/error-overlay/remotion-overlay/carets.js +2 -2
- package/dist/hot-middleware/process-update.js +2 -2
- package/dist/index.d.ts +1 -3
- package/dist/index.js +2 -7
- package/dist/setup-environment.js +0 -1
- package/package.json +5 -5
package/dist/bundle.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WebpackOverrideFn } from 'remotion';
|
|
2
|
+
export declare const bundle: (entryPoint: string, onProgressUpdate?: ((progress: number) => void) | undefined, options?: {
|
|
3
|
+
webpackOverride?: WebpackOverrideFn | undefined;
|
|
4
|
+
outDir?: string | undefined;
|
|
5
|
+
enableCaching?: boolean | undefined;
|
|
6
|
+
publicPath?: string | undefined;
|
|
7
|
+
} | undefined) => Promise<string>;
|
package/dist/bundle.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.bundle = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const os_1 = __importDefault(require("os"));
|
|
9
|
+
const path_1 = __importDefault(require("path"));
|
|
10
|
+
const remotion_1 = require("remotion");
|
|
11
|
+
const util_1 = require("util");
|
|
12
|
+
const webpack_1 = __importDefault(require("webpack"));
|
|
13
|
+
const copy_dir_1 = require("./copy-dir");
|
|
14
|
+
const static_preview_1 = require("./static-preview");
|
|
15
|
+
const webpack_config_1 = require("./webpack-config");
|
|
16
|
+
const entry = require.resolve('./renderEntry');
|
|
17
|
+
const promisified = (0, util_1.promisify)(webpack_1.default);
|
|
18
|
+
const prepareOutDir = async (specified) => {
|
|
19
|
+
if (specified) {
|
|
20
|
+
await fs_1.default.promises.mkdir(specified, { recursive: true });
|
|
21
|
+
return specified;
|
|
22
|
+
}
|
|
23
|
+
return fs_1.default.promises.mkdtemp(path_1.default.join(os_1.default.tmpdir(), 'react-motion-graphics'));
|
|
24
|
+
};
|
|
25
|
+
const trimLeadingSlash = (p) => {
|
|
26
|
+
if (p.startsWith('/')) {
|
|
27
|
+
return trimLeadingSlash(p.substr(1));
|
|
28
|
+
}
|
|
29
|
+
return p;
|
|
30
|
+
};
|
|
31
|
+
const trimTrailingSlash = (p) => {
|
|
32
|
+
if (p.endsWith('/')) {
|
|
33
|
+
return trimTrailingSlash(p.substr(0, p.length - 1));
|
|
34
|
+
}
|
|
35
|
+
return p;
|
|
36
|
+
};
|
|
37
|
+
const bundle = async (entryPoint, onProgressUpdate, options) => {
|
|
38
|
+
var _a, _b, _c, _d;
|
|
39
|
+
const outDir = await prepareOutDir((_a = options === null || options === void 0 ? void 0 : options.outDir) !== null && _a !== void 0 ? _a : null);
|
|
40
|
+
const output = await promisified([
|
|
41
|
+
(0, webpack_config_1.webpackConfig)({
|
|
42
|
+
entry,
|
|
43
|
+
userDefinedComponent: entryPoint,
|
|
44
|
+
outDir,
|
|
45
|
+
environment: 'production',
|
|
46
|
+
webpackOverride: (_b = options === null || options === void 0 ? void 0 : options.webpackOverride) !== null && _b !== void 0 ? _b : remotion_1.Internals.defaultOverrideFunction,
|
|
47
|
+
onProgressUpdate,
|
|
48
|
+
enableCaching: (_c = options === null || options === void 0 ? void 0 : options.enableCaching) !== null && _c !== void 0 ? _c : remotion_1.Internals.DEFAULT_WEBPACK_CACHE_ENABLED,
|
|
49
|
+
maxTimelineTracks: 15,
|
|
50
|
+
// For production, the variables are set dynamically
|
|
51
|
+
envVariables: {},
|
|
52
|
+
inputProps: {},
|
|
53
|
+
}),
|
|
54
|
+
]);
|
|
55
|
+
if (!output) {
|
|
56
|
+
throw new Error('Expected webpack output');
|
|
57
|
+
}
|
|
58
|
+
const { errors } = output.toJson();
|
|
59
|
+
if (errors !== undefined && errors.length > 0) {
|
|
60
|
+
throw new Error(errors[0].message + '\n' + errors[0].details);
|
|
61
|
+
}
|
|
62
|
+
const baseDir = (_d = options === null || options === void 0 ? void 0 : options.publicPath) !== null && _d !== void 0 ? _d : '/';
|
|
63
|
+
const publicDir = '/' +
|
|
64
|
+
[trimTrailingSlash(trimLeadingSlash(baseDir)), 'public']
|
|
65
|
+
.filter(Boolean)
|
|
66
|
+
.join('/');
|
|
67
|
+
const from = path_1.default.join(process.cwd(), 'public');
|
|
68
|
+
const to = path_1.default.join(outDir, 'public');
|
|
69
|
+
if (fs_1.default.existsSync(from)) {
|
|
70
|
+
await (0, copy_dir_1.copyDir)(from, to);
|
|
71
|
+
}
|
|
72
|
+
const html = (0, static_preview_1.indexHtml)(publicDir, baseDir, null);
|
|
73
|
+
fs_1.default.writeFileSync(path_1.default.join(outDir, 'index.html'), html);
|
|
74
|
+
return outDir;
|
|
75
|
+
};
|
|
76
|
+
exports.bundle = bundle;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -11,5 +11,5 @@ declare type Range = {
|
|
|
11
11
|
declare type Ranges = Range[] & {
|
|
12
12
|
type?: string;
|
|
13
13
|
};
|
|
14
|
-
export declare function parseRange(size: number, str: string | string[]): -1 | -2
|
|
14
|
+
export declare function parseRange(size: number, str: string | string[]): Ranges | -1 | -2;
|
|
15
15
|
export {};
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
// Duplicated in create-video/src/open-in-editor.ts
|
|
3
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
4
|
if (k2 === undefined) k2 = k;
|
|
5
|
-
Object.
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
6
10
|
}) : (function(o, m, k, k2) {
|
|
7
11
|
if (k2 === undefined) k2 = k;
|
|
8
12
|
o[k2] = m[k];
|
|
@@ -9,6 +9,6 @@ const AskOnDiscord = () => {
|
|
|
9
9
|
const openInBrowser = (0, react_1.useCallback)(() => {
|
|
10
10
|
window.open(DISCORD_LINK, '_blank');
|
|
11
11
|
}, []);
|
|
12
|
-
return (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: openInBrowser, children: "Ask on Discord" }
|
|
12
|
+
return (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: openInBrowser, children: "Ask on Discord" });
|
|
13
13
|
};
|
|
14
14
|
exports.AskOnDiscord = AskOnDiscord;
|
|
@@ -19,6 +19,6 @@ const buttonContainer = {
|
|
|
19
19
|
fontSize: 14,
|
|
20
20
|
};
|
|
21
21
|
const Button = ({ children, onClick, disabled }) => {
|
|
22
|
-
return ((0, jsx_runtime_1.jsx)("button", { style: button, type: "button", disabled: disabled, onClick: onClick, children: (0, jsx_runtime_1.jsx)("div", { style: buttonContainer, children: children }
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)("button", { style: button, type: "button", disabled: disabled, onClick: onClick, children: (0, jsx_runtime_1.jsx)("div", { style: buttonContainer, children: children }) }));
|
|
23
23
|
};
|
|
24
24
|
exports.Button = Button;
|
|
@@ -22,7 +22,7 @@ const CodeFrame = ({ source, lineNumberWidth }) => {
|
|
|
22
22
|
tabSize: 2,
|
|
23
23
|
color: s.highlight ? 'white' : 'rgba(255, 255, 255, 0.6)',
|
|
24
24
|
lineHeight: 1.7,
|
|
25
|
-
}, children: [(0, jsx_runtime_1.jsx)("div", { style: lineNumber, children: String(s.lineNumber).padStart(lineNumberWidth, ' ') }
|
|
26
|
-
}) }
|
|
25
|
+
}, children: [(0, jsx_runtime_1.jsx)("div", { style: lineNumber, children: String(s.lineNumber).padStart(lineNumberWidth, ' ') }), s.content] }, j));
|
|
26
|
+
}) }));
|
|
27
27
|
};
|
|
28
28
|
exports.CodeFrame = CodeFrame;
|
|
@@ -18,6 +18,6 @@ const DismissButton = () => {
|
|
|
18
18
|
const dismiss = (0, react_1.useCallback)(() => {
|
|
19
19
|
window.location.href = '/';
|
|
20
20
|
}, []);
|
|
21
|
-
return ((0, jsx_runtime_1.jsx)("button", { type: "button", style: style, onClick: dismiss, children: (0, jsx_runtime_1.jsx)("svg", { focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", style: size, children: (0, jsx_runtime_1.jsx)("path", { fill: "white", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)("button", { type: "button", style: style, onClick: dismiss, children: (0, jsx_runtime_1.jsx)("svg", { focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", style: size, children: (0, jsx_runtime_1.jsx)("path", { fill: "white", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }) }) }));
|
|
22
22
|
};
|
|
23
23
|
exports.DismissButton = DismissButton;
|
|
@@ -85,6 +85,6 @@ const OpenInEditor = ({ stack }) => {
|
|
|
85
85
|
throw new Error('invalid state');
|
|
86
86
|
}
|
|
87
87
|
}, [state.type]);
|
|
88
|
-
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: openInBrowser, disabled: state.type !== 'idle', children: label }
|
|
88
|
+
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: openInBrowser, disabled: state.type !== 'idle', children: label }));
|
|
89
89
|
};
|
|
90
90
|
exports.OpenInEditor = OpenInEditor;
|
|
@@ -8,6 +8,6 @@ const SearchGithubIssues = ({ message }) => {
|
|
|
8
8
|
const openInBrowser = (0, react_1.useCallback)(() => {
|
|
9
9
|
window.open(`https://github.com/remotion-dev/remotion/issues?q=${encodeURIComponent(message)}`, '_blank');
|
|
10
10
|
}, [message]);
|
|
11
|
-
return (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: openInBrowser, children: "Search GitHub Issues" }
|
|
11
|
+
return (0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: openInBrowser, children: "Search GitHub Issues" });
|
|
12
12
|
};
|
|
13
13
|
exports.SearchGithubIssues = SearchGithubIssues;
|
|
@@ -41,8 +41,8 @@ const StackElement = ({ s, lineNumberWidth, isFirst, defaultFunctionName }) => {
|
|
|
41
41
|
const toggleCodeFrame = (0, react_1.useCallback)(() => {
|
|
42
42
|
setShowCodeFrame((f) => !f);
|
|
43
43
|
}, []);
|
|
44
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { style: header, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("div", { style: fnName, children: (_a = s.originalFunctionName) !== null && _a !== void 0 ? _a : defaultFunctionName }
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { style: header, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("div", { style: fnName, children: (_a = s.originalFunctionName) !== null && _a !== void 0 ? _a : defaultFunctionName }), s.originalFileName ? ((0, jsx_runtime_1.jsxs)("div", { style: location, children: [(0, format_location_1.formatLocation)(s.originalFileName), ":", s.originalLineNumber] })) : null] }), s.originalScriptCode && s.originalScriptCode.length > 0 ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: toggleCodeFrame, children: showCodeFrame ? (0, jsx_runtime_1.jsx)(carets_1.CaretDown, {}) : (0, jsx_runtime_1.jsx)(carets_1.CaretRight, {}) })) : null] }), (0, jsx_runtime_1.jsx)("div", { children: s.originalScriptCode &&
|
|
45
45
|
s.originalScriptCode.length > 0 &&
|
|
46
|
-
showCodeFrame ? ((0, jsx_runtime_1.jsx)(CodeFrame_1.CodeFrame, { lineNumberWidth: lineNumberWidth, source: s.originalScriptCode }
|
|
46
|
+
showCodeFrame ? ((0, jsx_runtime_1.jsx)(CodeFrame_1.CodeFrame, { lineNumberWidth: lineNumberWidth, source: s.originalScriptCode })) : null })] }));
|
|
47
47
|
};
|
|
48
48
|
exports.StackElement = StackElement;
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Symbolicating = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Symbolicating = (props) => {
|
|
6
|
-
return ((0, jsx_runtime_1.jsxs)("svg", { id: "loading", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: "16", height: "16", fill: "white", ...props, children: [(0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(0 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0" }
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { id: "loading", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: "16", height: "16", fill: "white", ...props, children: [(0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(0 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(45 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.125s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(90 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.25s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(135 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.375s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(180 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.5s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(225 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.675s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(270 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.75s" }) }), (0, jsx_runtime_1.jsx)("path", { opacity: ".1", d: "M14 0 H18 V8 H14 z", transform: "rotate(315 16 16)", children: (0, jsx_runtime_1.jsx)("animate", { attributeName: "opacity", from: "1", to: ".1", dur: "1s", repeatCount: "indefinite", begin: "0.875s" }) })] }));
|
|
7
7
|
};
|
|
8
8
|
exports.Symbolicating = Symbolicating;
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CaretDown = exports.CaretRight = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const CaretRight = () => {
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)("svg", { style: { height: 20 }, "aria-hidden": "true", focusable: "false", role: "img", viewBox: "0 0 192 512", children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z" }
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("svg", { style: { height: 20 }, "aria-hidden": "true", focusable: "false", role: "img", viewBox: "0 0 192 512", children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z" }) }));
|
|
7
7
|
};
|
|
8
8
|
exports.CaretRight = CaretRight;
|
|
9
9
|
const CaretDown = () => {
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", style: { height: 20 }, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", style: { height: 20 }, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }) }));
|
|
11
11
|
};
|
|
12
12
|
exports.CaretDown = CaretDown;
|
|
@@ -50,7 +50,7 @@ const processUpdate = function (hash, moduleMap, options) {
|
|
|
50
50
|
async function check() {
|
|
51
51
|
var _a;
|
|
52
52
|
const cb = function (err, updatedModules) {
|
|
53
|
-
var _a
|
|
53
|
+
var _a;
|
|
54
54
|
if (err)
|
|
55
55
|
return handleError(err);
|
|
56
56
|
if (!updatedModules) {
|
|
@@ -69,7 +69,7 @@ const processUpdate = function (hash, moduleMap, options) {
|
|
|
69
69
|
logUpdates(updatedModules, renewedModules);
|
|
70
70
|
};
|
|
71
71
|
const applyResult = (_a = module.hot) === null || _a === void 0 ? void 0 : _a.apply(applyOptions, applyCallback);
|
|
72
|
-
if (
|
|
72
|
+
if (applyResult === null || applyResult === void 0 ? void 0 : applyResult.then) {
|
|
73
73
|
// HotModuleReplacement.runtime.js refers to the result as `outdatedModules`
|
|
74
74
|
applyResult
|
|
75
75
|
.then((outdatedModules) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import mimeTypes from 'mime-types';
|
|
2
1
|
import esbuild = require('esbuild');
|
|
3
2
|
export declare const BundlerInternals: {
|
|
4
3
|
startServer: (entry: string, userDefinedComponent: string, options?: {
|
|
@@ -17,8 +16,7 @@ export declare const BundlerInternals: {
|
|
|
17
16
|
path: string;
|
|
18
17
|
}[];
|
|
19
18
|
esbuild: typeof esbuild;
|
|
20
|
-
mimeTypes: typeof mimeTypes;
|
|
21
19
|
};
|
|
22
|
-
export { bundle } from './
|
|
20
|
+
export { bundle } from './bundle';
|
|
23
21
|
export { PackageManager } from './get-package-manager';
|
|
24
22
|
export type { ProjectInfo } from './project-info';
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.bundle = exports.BundlerInternals = void 0;
|
|
7
|
-
const mime_types_1 = __importDefault(require("mime-types"));
|
|
8
4
|
const get_latest_remotion_version_1 = require("./get-latest-remotion-version");
|
|
9
5
|
const get_package_manager_1 = require("./get-package-manager");
|
|
10
6
|
const start_server_1 = require("./start-server");
|
|
@@ -18,7 +14,6 @@ exports.BundlerInternals = {
|
|
|
18
14
|
getPackageManager: get_package_manager_1.getPackageManager,
|
|
19
15
|
lockFilePaths: get_package_manager_1.lockFilePaths,
|
|
20
16
|
esbuild,
|
|
21
|
-
mimeTypes: mime_types_1.default,
|
|
22
17
|
};
|
|
23
|
-
var
|
|
24
|
-
Object.defineProperty(exports, "bundle", { enumerable: true, get: function () { return
|
|
18
|
+
var bundle_1 = require("./bundle");
|
|
19
|
+
Object.defineProperty(exports, "bundle", { enumerable: true, get: function () { return bundle_1.bundle; } });
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const remotion_1 = require("remotion");
|
|
4
4
|
remotion_1.Internals.setupEnvVariables();
|
|
5
|
-
remotion_1.Internals.setupInitialFrame();
|
|
6
5
|
remotion_1.Internals.setupPuppeteerTimeout();
|
|
7
6
|
remotion_1.Internals.CSSUtils.injectCSS(`
|
|
8
7
|
.css-reset * {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/bundler",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-offthread.21+1965d2596",
|
|
4
4
|
"description": "Bundler for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"esbuild": "0.14.19",
|
|
29
29
|
"execa": "5.1.1",
|
|
30
30
|
"express": "4.17.1",
|
|
31
|
-
"memfs": "3.4.
|
|
31
|
+
"memfs": "3.4.3",
|
|
32
32
|
"mime-types": "2.1.34",
|
|
33
33
|
"react-refresh": "0.9.0",
|
|
34
|
-
"remotion": "4.0.0-
|
|
34
|
+
"remotion": "4.0.0-offthread.21+1965d2596",
|
|
35
35
|
"semver": "7.3.4",
|
|
36
36
|
"source-map": "0.6.1",
|
|
37
37
|
"source-map-loader": "3.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@jonny/eslint-config": "3.0.259",
|
|
47
47
|
"@types/express": "^4.17.7",
|
|
48
48
|
"@types/jest": "^27.4.0",
|
|
49
|
-
"@types/mime-types": "
|
|
49
|
+
"@types/mime-types": "2.1.1",
|
|
50
50
|
"@types/node": "^16.7.5",
|
|
51
51
|
"@types/react": "18.0.1",
|
|
52
52
|
"@types/react-dom": "18.0.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "1965d2596493ada30f25a823ee3d85de7325c341"
|
|
81
81
|
}
|