@remotion/bundler 4.0.491 → 4.0.493
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.d.ts +1 -1
- package/dist/setup-sequence-stack-traces.js +17 -10
- package/package.json +7 -7
package/dist/bundle.js
CHANGED
|
@@ -303,6 +303,7 @@ const internalBundle = async (actualArgs) => {
|
|
|
303
303
|
title: 'Remotion Bundle',
|
|
304
304
|
renderDefaults: (_h = actualArgs.renderDefaults) !== null && _h !== void 0 ? _h : undefined,
|
|
305
305
|
publicFolderExists: `${publicPath + (publicPath.endsWith('/') ? '' : '/')}public`,
|
|
306
|
+
fileSystemPlatform: null,
|
|
306
307
|
gitSource: (_j = actualArgs.gitSource) !== null && _j !== void 0 ? _j : null,
|
|
307
308
|
projectName: (0, studio_shared_1.getProjectName)({
|
|
308
309
|
gitSource: (_k = actualArgs.gitSource) !== null && _k !== void 0 ? _k : null,
|
package/dist/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare const BundlerInternals: {
|
|
|
38
38
|
extraPlugins: any[];
|
|
39
39
|
}) => Promise<[string, import("@rspack/core").RspackOptions]>;
|
|
40
40
|
createRspackCompiler: (config: import("@rspack/core").RspackOptions) => import("@rspack/core").Compiler;
|
|
41
|
-
indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, sampleRate, logLevel, mode, bundleScriptUrl, readOnlyStudio, studioRuntimeConfig, }: import("@remotion/studio-shared").StudioHtmlOptions) => string;
|
|
41
|
+
indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, fileSystemPlatform, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, sampleRate, logLevel, mode, bundleScriptUrl, readOnlyStudio, studioRuntimeConfig, }: import("@remotion/studio-shared").StudioHtmlOptions) => string;
|
|
42
42
|
cacheExists: (remotionRoot: string, environment: "development" | "production", hash: string) => "does-not-exist" | "exists" | "other-exists";
|
|
43
43
|
clearCache: (remotionRoot: string, env: "development" | "production") => Promise<void>;
|
|
44
44
|
getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, }: {
|
|
@@ -8,28 +8,35 @@ const jsx_dev_runtime_1 = __importDefault(require("react/jsx-dev-runtime"));
|
|
|
8
8
|
const jsx_runtime_1 = __importDefault(require("react/jsx-runtime"));
|
|
9
9
|
const remotion_1 = require("remotion");
|
|
10
10
|
const componentsToAddStacksTo = remotion_1.Internals.getComponentsToAddStacksTo();
|
|
11
|
+
const sequenceComponent = remotion_1.Internals.getSequenceComponent();
|
|
11
12
|
const originalCreateElement = react_1.default.createElement;
|
|
12
13
|
const originalJsx = jsx_runtime_1.default.jsx;
|
|
13
14
|
const originalJsxs = jsx_runtime_1.default.jsxs;
|
|
14
15
|
const originalJsxDev = jsx_dev_runtime_1.default.jsxDEV;
|
|
15
|
-
const enableProxy = (api) => {
|
|
16
|
+
const enableProxy = (api, isCreateElement) => {
|
|
16
17
|
return new Proxy(api, {
|
|
17
18
|
apply(target, thisArg, argArray) {
|
|
18
19
|
if (componentsToAddStacksTo.includes(argArray[0])) {
|
|
19
20
|
const [first, props, ...rest] = argArray;
|
|
21
|
+
const children = isCreateElement
|
|
22
|
+
? rest.length === 0
|
|
23
|
+
? props === null || props === void 0 ? void 0 : props.children
|
|
24
|
+
: rest
|
|
25
|
+
: props === null || props === void 0 ? void 0 : props.children;
|
|
20
26
|
const newProps = (props === null || props === void 0 ? void 0 : props.stack)
|
|
21
|
-
? props
|
|
22
|
-
: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
? { ...props }
|
|
28
|
+
: { ...(props !== null && props !== void 0 ? props : {}), stack: new Error().stack };
|
|
29
|
+
if (first === sequenceComponent) {
|
|
30
|
+
newProps._remotionInternalSingleChildComponent =
|
|
31
|
+
remotion_1.Internals.getSingleChildComponent(children);
|
|
32
|
+
}
|
|
26
33
|
return Reflect.apply(target, thisArg, [first, newProps, ...rest]);
|
|
27
34
|
}
|
|
28
35
|
return Reflect.apply(target, thisArg, argArray);
|
|
29
36
|
},
|
|
30
37
|
});
|
|
31
38
|
};
|
|
32
|
-
react_1.default.createElement = enableProxy(originalCreateElement);
|
|
33
|
-
jsx_runtime_1.default.jsx = enableProxy(originalJsx);
|
|
34
|
-
jsx_runtime_1.default.jsxs = enableProxy(originalJsxs);
|
|
35
|
-
jsx_dev_runtime_1.default.jsxDEV = enableProxy(originalJsxDev);
|
|
39
|
+
react_1.default.createElement = enableProxy(originalCreateElement, true);
|
|
40
|
+
jsx_runtime_1.default.jsx = enableProxy(originalJsx, false);
|
|
41
|
+
jsx_runtime_1.default.jsxs = enableProxy(originalJsxs, false);
|
|
42
|
+
jsx_dev_runtime_1.default.jsxDEV = enableProxy(originalJsxDev, false);
|
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.493",
|
|
7
7
|
"description": "Bundle Remotion compositions using Webpack",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"bugs": {
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"css-loader": "7.1.4",
|
|
25
25
|
"esbuild": "0.28.1",
|
|
26
26
|
"react-refresh": "0.18.0",
|
|
27
|
-
"remotion": "4.0.
|
|
28
|
-
"@remotion/studio": "4.0.
|
|
29
|
-
"@remotion/studio-shared": "4.0.
|
|
30
|
-
"@remotion/timeline-utils": "4.0.
|
|
31
|
-
"@remotion/media-parser": "4.0.
|
|
27
|
+
"remotion": "4.0.493",
|
|
28
|
+
"@remotion/studio": "4.0.493",
|
|
29
|
+
"@remotion/studio-shared": "4.0.493",
|
|
30
|
+
"@remotion/timeline-utils": "4.0.493",
|
|
31
|
+
"@remotion/media-parser": "4.0.493",
|
|
32
32
|
"style-loader": "4.0.0",
|
|
33
33
|
"webpack": "5.105.0"
|
|
34
34
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"react": "19.2.3",
|
|
41
41
|
"react-dom": "19.2.3",
|
|
42
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
42
|
+
"@remotion/eslint-config-internal": "4.0.493",
|
|
43
43
|
"eslint": "9.19.0",
|
|
44
44
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
45
45
|
},
|