@remotion/bundler 4.0.0-offthread.42 → 4.0.0-offthread.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  import { WebpackOverrideFn } from 'remotion';
2
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>;
3
+ webpackOverride?: WebpackOverrideFn;
4
+ outDir?: string;
5
+ enableCaching?: boolean;
6
+ publicPath?: string;
7
+ }) => Promise<string>;
@@ -36,10 +36,10 @@ const ErrorDisplay = ({ display }) => {
36
36
  .trim();
37
37
  }, [display.error]);
38
38
  const lineNumberWidth = String(highestLineNumber).length;
39
- return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: false, name: display.error.name, message: message }, void 0), display.stackFrames.length > 0 && window.remotion_editorName ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(OpenInEditor_1.OpenInEditor, { stack: display.stackFrames[0] }, void 0), (0, jsx_runtime_1.jsx)("div", { style: spacer }, void 0)] }, void 0)) : null, (0, jsx_runtime_1.jsx)(SearchGitHubIssues_1.SearchGithubIssues, { message: display.error.message }, void 0), (0, jsx_runtime_1.jsx)("div", { style: spacer }, void 0), (0, jsx_runtime_1.jsx)(AskOnDiscord_1.AskOnDiscord, {}, void 0), (0, jsx_runtime_1.jsx)("div", { style: stack, children: display.stackFrames.map((s, i) => {
39
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: false, name: display.error.name, message: message }), display.stackFrames.length > 0 && window.remotion_editorName ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(OpenInEditor_1.OpenInEditor, { stack: display.stackFrames[0] }), (0, jsx_runtime_1.jsx)("div", { style: spacer })] })) : null, (0, jsx_runtime_1.jsx)(SearchGitHubIssues_1.SearchGithubIssues, { message: display.error.message }), (0, jsx_runtime_1.jsx)("div", { style: spacer }), (0, jsx_runtime_1.jsx)(AskOnDiscord_1.AskOnDiscord, {}), (0, jsx_runtime_1.jsx)("div", { style: stack, children: display.stackFrames.map((s, i) => {
40
40
  return ((0, jsx_runtime_1.jsx)(StackFrame_1.StackElement
41
41
  // eslint-disable-next-line react/no-array-index-key
42
42
  , { isFirst: i === 0, s: s, lineNumberWidth: lineNumberWidth, defaultFunctionName: '(anonymous function)' }, i));
43
- }) }, void 0)] }, void 0));
43
+ }) })] }));
44
44
  };
45
45
  exports.ErrorDisplay = ErrorDisplay;
@@ -48,14 +48,14 @@ const ErrorLoader = ({ error }) => {
48
48
  });
49
49
  }, [error]);
50
50
  if (state.type === 'loading') {
51
- return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: true, name: error.name, message: error.message }, void 0) }, void 0));
51
+ return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: true, name: error.name, message: error.message }) }));
52
52
  }
53
53
  if (state.type === 'error') {
54
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: false, name: error.name, message: error.message }, void 0), (0, jsx_runtime_1.jsx)("div", { style: errorWhileErrorStyle, children: "Error while getting stack trace:" }, void 0), (0, jsx_runtime_1.jsx)("div", { style: errorWhileErrorStyle, children: state.err.stack }, void 0), (0, jsx_runtime_1.jsx)("div", { style: errorWhileErrorStyle, children: "Report this in the Remotion repo." }, void 0)] }, void 0));
54
+ return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: false, name: error.name, message: error.message }), (0, jsx_runtime_1.jsx)("div", { style: errorWhileErrorStyle, children: "Error while getting stack trace:" }), (0, jsx_runtime_1.jsx)("div", { style: errorWhileErrorStyle, children: state.err.stack }), (0, jsx_runtime_1.jsx)("div", { style: errorWhileErrorStyle, children: "Report this in the Remotion repo." })] }));
55
55
  }
56
56
  if (state.type === 'no-record') {
57
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: false, name: error.name, message: error.message }, void 0), (0, jsx_runtime_1.jsx)("div", { style: errorWhileErrorStyle, children: "Check the Terminal and browser console for error messages." }, void 0)] }, void 0));
57
+ return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)(ErrorTitle_1.ErrorTitle, { symbolicating: false, name: error.name, message: error.message }), (0, jsx_runtime_1.jsx)("div", { style: errorWhileErrorStyle, children: "Check the Terminal and browser console for error messages." })] }));
58
58
  }
59
- return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)(ErrorDisplay_1.ErrorDisplay, { display: state.record }, void 0) }, void 0));
59
+ return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)(ErrorDisplay_1.ErrorDisplay, { display: state.record }) }));
60
60
  };
61
61
  exports.ErrorLoader = ErrorLoader;
@@ -36,6 +36,6 @@ const spacer = {
36
36
  width: 5,
37
37
  };
38
38
  const ErrorTitle = ({ name, message, symbolicating }) => {
39
- return ((0, jsx_runtime_1.jsxs)("div", { style: title, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("span", { style: errName, children: name }, void 0), (0, jsx_runtime_1.jsx)("br", {}, void 0), (0, jsx_runtime_1.jsxs)("div", { style: row, children: [symbolicating ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Symbolicating_1.Symbolicating, {}, void 0), (0, jsx_runtime_1.jsx)("div", { style: spacer }, void 0)] }, void 0)) : null, (0, jsx_runtime_1.jsx)("div", { children: message }, void 0)] }, void 0)] }, void 0), (0, react_overlay_1.didUnmountReactApp)() ? null : (0, jsx_runtime_1.jsx)(DismissButton_1.DismissButton, {}, void 0)] }, void 0));
39
+ return ((0, jsx_runtime_1.jsxs)("div", { style: title, children: [(0, jsx_runtime_1.jsxs)("div", { style: left, children: [(0, jsx_runtime_1.jsx)("span", { style: errName, children: name }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsxs)("div", { style: row, children: [symbolicating ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Symbolicating_1.Symbolicating, {}), (0, jsx_runtime_1.jsx)("div", { style: spacer })] })) : null, (0, jsx_runtime_1.jsx)("div", { children: message })] })] }), (0, react_overlay_1.didUnmountReactApp)() ? null : (0, jsx_runtime_1.jsx)(DismissButton_1.DismissButton, {})] }));
40
40
  };
41
41
  exports.ErrorTitle = ErrorTitle;
@@ -44,6 +44,6 @@ const Overlay = () => {
44
44
  color: 'white',
45
45
  }, children: errors.errors.map((err) => {
46
46
  return (0, jsx_runtime_1.jsx)(ErrorLoader_1.ErrorLoader, { error: err }, err.stack);
47
- }) }, void 0));
47
+ }) }));
48
48
  };
49
49
  exports.Overlay = Overlay;
@@ -9,10 +9,10 @@ const client_1 = __importDefault(require("react-dom/client"));
9
9
  const Overlay_1 = require("./Overlay");
10
10
  const mountRemotionOverlay = () => {
11
11
  if (client_1.default.createRoot) {
12
- client_1.default.createRoot(document.getElementById('remotion-error-overlay')).render((0, jsx_runtime_1.jsx)(Overlay_1.Overlay, {}, void 0));
12
+ client_1.default.createRoot(document.getElementById('remotion-error-overlay')).render((0, jsx_runtime_1.jsx)(Overlay_1.Overlay, {}));
13
13
  }
14
14
  else {
15
- client_1.default.render((0, jsx_runtime_1.jsx)(Overlay_1.Overlay, {}, void 0), document.getElementById('remotion-error-overlay'));
15
+ client_1.default.render((0, jsx_runtime_1.jsx)(Overlay_1.Overlay, {}), document.getElementById('remotion-error-overlay'));
16
16
  }
17
17
  };
18
18
  exports.mountRemotionOverlay = mountRemotionOverlay;
package/dist/get-port.js CHANGED
@@ -5,16 +5,25 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getDesiredPort = void 0;
7
7
  const net_1 = __importDefault(require("net"));
8
- const getAvailablePort = (portToTry) => new Promise((resolve, reject) => {
9
- const server = net_1.default.createServer();
10
- server.unref();
11
- server.on('error', reject);
12
- server.listen({ port: portToTry }, () => {
13
- const { port } = server.address();
14
- server.close(() => {
15
- resolve(port);
16
- });
8
+ const getAvailablePort = (portToTry) => new Promise((resolve) => {
9
+ let status = 'unavailable';
10
+ const host = '127.0.0.1';
11
+ const socket = new net_1.default.Socket();
12
+ socket.on('connect', () => {
13
+ status = 'unavailable';
14
+ socket.destroy();
17
15
  });
16
+ socket.setTimeout(1000);
17
+ socket.on('timeout', () => {
18
+ status = 'unavailable';
19
+ socket.destroy();
20
+ resolve(status);
21
+ });
22
+ socket.on('error', () => {
23
+ status = 'available';
24
+ });
25
+ socket.on('close', () => resolve(status));
26
+ socket.connect(portToTry, host);
18
27
  });
19
28
  const portCheckSequence = function* (ports) {
20
29
  if (ports) {
@@ -22,22 +31,10 @@ const portCheckSequence = function* (ports) {
22
31
  }
23
32
  yield 0; // Fall back to 0 if anything else failed
24
33
  };
25
- const isPortAvailable = async (port) => {
26
- try {
27
- await getAvailablePort(port);
28
- return true;
29
- }
30
- catch (error) {
31
- if (!['EADDRINUSE', 'EACCES'].includes(error.code)) {
32
- throw error;
33
- }
34
- return false;
35
- }
36
- };
37
34
  const getPort = async (from, to) => {
38
35
  const ports = makeRange(from, to);
39
36
  for (const port of portCheckSequence(ports)) {
40
- if (await isPortAvailable(port)) {
37
+ if ((await getAvailablePort(port)) === 'available') {
41
38
  return port;
42
39
  }
43
40
  }
@@ -45,7 +42,7 @@ const getPort = async (from, to) => {
45
42
  };
46
43
  const getDesiredPort = async (desiredPort, from, to) => {
47
44
  if (typeof desiredPort !== 'undefined' &&
48
- (await isPortAvailable(desiredPort))) {
45
+ (await getAvailablePort(desiredPort)) === 'available') {
49
46
  return desiredPort;
50
47
  }
51
48
  const actualPort = await getPort(from, to);
@@ -47,17 +47,17 @@ const AvailableCompositions = () => {
47
47
  (0, renderEntry_1.setBundleModeAndUpdate)({ type: 'evaluation' });
48
48
  }, []);
49
49
  if ((0, bundle_mode_1.getBundleMode)().type !== 'evaluation') {
50
- return ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: showComps, children: "Click here to see a list of available compositions." }, void 0));
50
+ return ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: showComps, children: "Click here to see a list of available compositions." }));
51
51
  }
52
- return ((0, jsx_runtime_1.jsxs)("div", { children: [comps === null ? (0, jsx_runtime_1.jsx)("p", { children: "Loading compositions..." }, void 0) : null, (0, jsx_runtime_1.jsx)("ul", { children: comps === null
52
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [comps === null ? (0, jsx_runtime_1.jsx)("p", { children: "Loading compositions..." }) : null, (0, jsx_runtime_1.jsx)("ul", { children: comps === null
53
53
  ? null
54
54
  : comps.map((c) => {
55
55
  return (0, jsx_runtime_1.jsx)("li", { children: c.id }, c.id);
56
- }) }, void 0)] }, void 0));
56
+ }) })] }));
57
57
  };
58
58
  exports.AvailableCompositions = AvailableCompositions;
59
59
  const Homepage = () => {
60
60
  const url = window.location.origin + window.location.pathname;
61
- return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)("h1", { children: "Remotion Bundle" }, void 0), "This is a website which contains a bundled Remotion video. You can render videos based on this URL.", (0, jsx_runtime_1.jsx)("h2", { children: "Available compositions" }, void 0), (0, jsx_runtime_1.jsx)(exports.AvailableCompositions, {}, void 0), (0, jsx_runtime_1.jsx)("h2", { children: "How to render" }, void 0), "Locally: ", (0, jsx_runtime_1.jsx)("br", {}, void 0), (0, jsx_runtime_1.jsx)("br", {}, void 0), (0, jsx_runtime_1.jsxs)("div", { style: pre, children: ["npx remotion render ", url, " ", '<comp-name> <output-location>'] }, void 0), (0, jsx_runtime_1.jsx)("br", {}, void 0), (0, jsx_runtime_1.jsx)("br", {}, void 0), "With Remotion Lambda: ", (0, jsx_runtime_1.jsx)("br", {}, void 0), (0, jsx_runtime_1.jsx)("br", {}, void 0), (0, jsx_runtime_1.jsxs)("div", { style: pre, children: ["npx remotion lambda render ", url, " ", '<comp-name>'] }, void 0), (0, jsx_runtime_1.jsx)("br", {}, void 0), (0, jsx_runtime_1.jsxs)("p", { children: ["You can also render still images, and use the Node.JS APIs", ' ', (0, jsx_runtime_1.jsx)("code", { children: "getCompositions()" }, void 0), ", ", (0, jsx_runtime_1.jsx)("code", { children: "renderMedia()" }, void 0), ",", ' ', (0, jsx_runtime_1.jsx)("code", { children: "renderMediaOnLambda()" }, void 0), ", ", (0, jsx_runtime_1.jsx)("code", { children: "renderStill()" }, void 0), " and", ' ', (0, jsx_runtime_1.jsx)("code", { children: "renderStillOnLambda()" }, void 0), " with this URL."] }, void 0), (0, jsx_runtime_1.jsxs)("p", { children: ["Visit", ' ', (0, jsx_runtime_1.jsx)("a", { href: "https://remotion.dev/docs", target: "_blank", children: "remotion.dev/docs" }, void 0), ' ', "to read the documentation."] }, void 0)] }, void 0));
61
+ return ((0, jsx_runtime_1.jsxs)("div", { style: container, children: [(0, jsx_runtime_1.jsx)("h1", { children: "Remotion Bundle" }), "This is a website which contains a bundled Remotion video. You can render videos based on this URL.", (0, jsx_runtime_1.jsx)("h2", { children: "Available compositions" }), (0, jsx_runtime_1.jsx)(exports.AvailableCompositions, {}), (0, jsx_runtime_1.jsx)("h2", { children: "How to render" }), "Locally: ", (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsxs)("div", { style: pre, children: ["npx remotion render ", url, " ", '<comp-name> <output-location>'] }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("br", {}), "With Remotion Lambda: ", (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsxs)("div", { style: pre, children: ["npx remotion lambda render ", url, " ", '<comp-name>'] }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsxs)("p", { children: ["You can also render still images, and use the Node.JS APIs", ' ', (0, jsx_runtime_1.jsx)("code", { children: "getCompositions()" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "renderMedia()" }), ",", ' ', (0, jsx_runtime_1.jsx)("code", { children: "renderMediaOnLambda()" }), ", ", (0, jsx_runtime_1.jsx)("code", { children: "renderStill()" }), " and", ' ', (0, jsx_runtime_1.jsx)("code", { children: "renderStillOnLambda()" }), " with this URL."] }), (0, jsx_runtime_1.jsxs)("p", { children: ["Visit", ' ', (0, jsx_runtime_1.jsx)("a", { href: "https://remotion.dev/docs", target: "_blank", children: "remotion.dev/docs" }), ' ', "to read the documentation."] })] }));
62
62
  };
63
63
  exports.Homepage = Homepage;
@@ -68,12 +68,12 @@ const GetVideo = ({ state }) => {
68
68
  if (!video) {
69
69
  return null;
70
70
  }
71
- return ((0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(Fallback, {}, void 0), children: (0, jsx_runtime_1.jsx)("div", { id: "remotion-canvas", style: {
71
+ return ((0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(Fallback, {}), children: (0, jsx_runtime_1.jsx)("div", { id: "remotion-canvas", style: {
72
72
  width: video.width,
73
73
  height: video.height,
74
74
  display: 'flex',
75
75
  backgroundColor: 'transparent',
76
- }, children: Component ? ((0, jsx_runtime_1.jsx)(Component, { ...((_a = video === null || video === void 0 ? void 0 : video.defaultProps) !== null && _a !== void 0 ? _a : {}), ...(0, remotion_1.getInputProps)() }, void 0)) : null }, void 0) }, void 0));
76
+ }, children: Component ? ((0, jsx_runtime_1.jsx)(Component, { ...((_a = video === null || video === void 0 ? void 0 : video.defaultProps) !== null && _a !== void 0 ? _a : {}), ...(0, remotion_1.getInputProps)() })) : null }) }));
77
77
  };
78
78
  const videoContainer = document.getElementById('video-container');
79
79
  const explainerContainer = document.getElementById('explainer-container');
@@ -86,7 +86,7 @@ let cleanupExplainerContainer = () => {
86
86
  const renderContent = () => {
87
87
  const bundleMode = (0, bundle_mode_1.getBundleMode)();
88
88
  if (bundleMode.type === 'composition' || bundleMode.type === 'evaluation') {
89
- const markup = ((0, jsx_runtime_1.jsxs)(remotion_1.Internals.RemotionRoot, { children: [(0, jsx_runtime_1.jsx)(Root, {}, void 0), (0, jsx_runtime_1.jsx)(GetVideo, { state: bundleMode }, void 0)] }, void 0));
89
+ const markup = ((0, jsx_runtime_1.jsxs)(remotion_1.Internals.RemotionRoot, { children: [(0, jsx_runtime_1.jsx)(Root, {}), (0, jsx_runtime_1.jsx)(GetVideo, { state: bundleMode })] }));
90
90
  if (client_1.default.createRoot) {
91
91
  const root = client_1.default.createRoot(videoContainer);
92
92
  root.render(markup);
@@ -110,14 +110,14 @@ const renderContent = () => {
110
110
  if (bundleMode.type === 'index' || bundleMode.type === 'evaluation') {
111
111
  if (client_1.default.createRoot) {
112
112
  const root = client_1.default.createRoot(explainerContainer);
113
- root.render((0, jsx_runtime_1.jsx)(homepage_1.Homepage, {}, void 0));
113
+ root.render((0, jsx_runtime_1.jsx)(homepage_1.Homepage, {}));
114
114
  cleanupExplainerContainer = () => {
115
115
  root.unmount();
116
116
  };
117
117
  }
118
118
  else {
119
119
  const root = client_1.default;
120
- root.render((0, jsx_runtime_1.jsx)(homepage_1.Homepage, {}, void 0), explainerContainer);
120
+ root.render((0, jsx_runtime_1.jsx)(homepage_1.Homepage, {}), explainerContainer);
121
121
  cleanupExplainerContainer = () => {
122
122
  root.unmountComponentAtNode(explainerContainer);
123
123
  };
@@ -154,6 +154,6 @@ if (typeof window !== 'undefined') {
154
154
  };
155
155
  });
156
156
  };
157
- window.siteVersion = '2';
157
+ window.siteVersion = '3';
158
158
  window.setBundleMode = exports.setBundleModeAndUpdate;
159
159
  }
@@ -1,8 +1,8 @@
1
1
  import { WebpackOverrideFn } from 'remotion';
2
2
  export declare const startServer: (entry: string, userDefinedComponent: string, options?: {
3
- webpackOverride?: WebpackOverrideFn | undefined;
4
- inputProps?: object | undefined;
5
- envVariables?: Record<string, string> | undefined;
3
+ webpackOverride?: WebpackOverrideFn;
4
+ inputProps?: object;
5
+ envVariables?: Record<string, string>;
6
6
  port: number | null;
7
- maxTimelineTracks?: number | undefined;
8
- } | undefined) => Promise<number>;
7
+ maxTimelineTracks?: number;
8
+ }) => Promise<number>;
@@ -51,7 +51,7 @@ const startServer = async (entry, userDefinedComponent, options) => {
51
51
  }));
52
52
  app.use((0, dev_middleware_1.wdm)(compiler));
53
53
  app.use((0, hot_middleware_1.webpackHotMiddleware)(compiler));
54
- app.get('/api/update', (req, res) => {
54
+ app.get('/api/update', (_req, res) => {
55
55
  (0, update_available_1.isUpdateAvailableWithTimeout)()
56
56
  .then((data) => {
57
57
  res.json(data);
@@ -62,7 +62,7 @@ const startServer = async (entry, userDefinedComponent, options) => {
62
62
  });
63
63
  });
64
64
  });
65
- app.get('/api/project-info', (req, res) => {
65
+ app.get('/api/project-info', (_req, res) => {
66
66
  (0, project_info_1.getProjectInfo)()
67
67
  .then((data) => {
68
68
  res.json(data);
@@ -115,7 +115,7 @@ const startServer = async (entry, userDefinedComponent, options) => {
115
115
  });
116
116
  }
117
117
  });
118
- app.use('favicon.png', (req, res) => {
118
+ app.use('favicon.png', (_req, res) => {
119
119
  res.sendFile(path_1.default.join(__dirname, '..', 'web', 'favicon.png'));
120
120
  });
121
121
  const edit = await editorGuess;
@@ -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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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];
@@ -175,14 +179,8 @@ const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpa
175
179
  : null,
176
180
  ].filter(truthy),
177
181
  },
178
- {
179
- test: /\.js$/,
180
- enforce: 'pre',
181
- use: [require.resolve('source-map-loader')],
182
- },
183
182
  ],
184
183
  },
185
- ignoreWarnings: [/Failed to parse source map/],
186
184
  });
187
185
  };
188
186
  exports.webpackConfig = webpackConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "4.0.0-offthread.42+5cdecb6d7",
3
+ "version": "4.0.0-offthread.7+be13ba29c",
4
4
  "description": "Bundler for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -26,15 +26,13 @@
26
26
  "dependencies": {
27
27
  "css-loader": "5.2.7",
28
28
  "esbuild": "0.14.19",
29
- "execa": "5.1.1",
30
29
  "express": "4.17.1",
31
30
  "memfs": "3.4.3",
32
31
  "mime-types": "2.1.34",
33
32
  "react-refresh": "0.9.0",
34
- "remotion": "4.0.0-offthread.42+5cdecb6d7",
33
+ "remotion": "4.0.0-offthread.7+be13ba29c",
35
34
  "semver": "7.3.4",
36
35
  "source-map": "0.6.1",
37
- "source-map-loader": "3.0.0",
38
36
  "style-loader": "2.0.0",
39
37
  "webpack": "5.72.0"
40
38
  },
@@ -64,7 +62,7 @@
64
62
  "react": "^18.0.0",
65
63
  "react-dom": "^18.0.0",
66
64
  "ts-jest": "^27.0.5",
67
- "typescript": "^4.5.5"
65
+ "typescript": "^4.7.0"
68
66
  },
69
67
  "keywords": [
70
68
  "remotion",
@@ -77,5 +75,5 @@
77
75
  "publishConfig": {
78
76
  "access": "public"
79
77
  },
80
- "gitHead": "5cdecb6d7971afe3062521d319eb32aac96346f3"
78
+ "gitHead": "be13ba29c9d92cf58319a616e7e824b285480528"
81
79
  }