@remotion/bundler 4.0.518 → 4.0.520
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/rspack-config.js
CHANGED
|
@@ -63,9 +63,7 @@ const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment,
|
|
|
63
63
|
: null,
|
|
64
64
|
reactScan: (0, react_scan_entry_point_1.getReactScanEntryPoint)(environment),
|
|
65
65
|
environmentSetup: require.resolve('./setup-environment'),
|
|
66
|
-
sequenceStackTraces:
|
|
67
|
-
? require.resolve('./setup-sequence-stack-traces')
|
|
68
|
-
: null,
|
|
66
|
+
sequenceStackTraces: require.resolve('./setup-sequence-stack-traces'),
|
|
69
67
|
userDefinedComponent,
|
|
70
68
|
reactShim: require.resolve('../react-shim.js'),
|
|
71
69
|
studioRenderEntry: entry,
|
|
@@ -38,7 +38,8 @@ const getSourceFileName = (fileName) => {
|
|
|
38
38
|
const enableProxy = (api, isCreateElement, sourceArgumentIndex) => {
|
|
39
39
|
return new Proxy(api, {
|
|
40
40
|
apply(target, thisArg, argArray) {
|
|
41
|
-
|
|
41
|
+
const component = argArray[0];
|
|
42
|
+
if (componentsToAddStacksTo.includes(component)) {
|
|
42
43
|
const [first, props, ...rest] = argArray;
|
|
43
44
|
const children = isCreateElement
|
|
44
45
|
? rest.length === 0
|
|
@@ -68,7 +69,27 @@ const enableProxy = (api, isCreateElement, sourceArgumentIndex) => {
|
|
|
68
69
|
},
|
|
69
70
|
});
|
|
70
71
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
let stackTracesEnabled = false;
|
|
73
|
+
const enableSequenceStackTraces = () => {
|
|
74
|
+
if (stackTracesEnabled) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
stackTracesEnabled = true;
|
|
78
|
+
react_1.default.createElement = enableProxy(originalCreateElement, true, null);
|
|
79
|
+
jsx_runtime_1.default.jsx = enableProxy(originalJsx, false, null);
|
|
80
|
+
jsx_runtime_1.default.jsxs = enableProxy(originalJsxs, false, null);
|
|
81
|
+
if (originalJsxDev) {
|
|
82
|
+
jsx_dev_runtime_1.default.jsxDEV = enableProxy(originalJsxDev, false, 4);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
if (typeof window !== 'undefined') {
|
|
86
|
+
window.remotion_enableSequenceStackTraces = enableSequenceStackTraces;
|
|
87
|
+
}
|
|
88
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
89
|
+
const RefreshRuntime = require('react-refresh/runtime');
|
|
90
|
+
remotion_1.Internals.setComponentIdentityResolver((component) => {
|
|
91
|
+
var _a;
|
|
92
|
+
return (_a = RefreshRuntime.getFamilyByType(component)) !== null && _a !== void 0 ? _a : component;
|
|
93
|
+
});
|
|
94
|
+
enableSequenceStackTraces();
|
|
95
|
+
}
|
package/dist/webpack-config.js
CHANGED
|
@@ -63,9 +63,7 @@ const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment,
|
|
|
63
63
|
: null,
|
|
64
64
|
reactScan: (0, react_scan_entry_point_1.getReactScanEntryPoint)(environment),
|
|
65
65
|
environmentSetup: require.resolve('./setup-environment'),
|
|
66
|
-
sequenceStackTraces:
|
|
67
|
-
? require.resolve('./setup-sequence-stack-traces')
|
|
68
|
-
: null,
|
|
66
|
+
sequenceStackTraces: require.resolve('./setup-sequence-stack-traces'),
|
|
69
67
|
userDefinedComponent,
|
|
70
68
|
reactShim: require.resolve('../react-shim.js'),
|
|
71
69
|
studioRenderEntry: entry,
|
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.520",
|
|
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.520",
|
|
28
|
+
"@remotion/studio": "4.0.520",
|
|
29
|
+
"@remotion/studio-shared": "4.0.520",
|
|
30
|
+
"@remotion/timeline-utils": "4.0.520",
|
|
31
|
+
"@remotion/media-parser": "4.0.520",
|
|
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.520",
|
|
43
43
|
"eslint": "9.19.0",
|
|
44
44
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
45
45
|
},
|