@remotion/bundler 4.0.71 → 4.0.73
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/renderEntry.js +6 -5
- package/dist/webpack-config.js +4 -2
- package/package.json +2 -2
package/dist/renderEntry.js
CHANGED
|
@@ -12,6 +12,7 @@ const react_1 = require("react");
|
|
|
12
12
|
// hence why we import the right thing all the time but need to differentiate here
|
|
13
13
|
const client_1 = __importDefault(require("react-dom/client"));
|
|
14
14
|
const remotion_1 = require("remotion");
|
|
15
|
+
const no_react_1 = require("remotion/no-react");
|
|
15
16
|
const bundle_mode_1 = require("./bundle-mode");
|
|
16
17
|
const homepage_1 = require("./homepage/homepage");
|
|
17
18
|
remotion_1.Internals.CSSUtils.injectCSS(remotion_1.Internals.CSSUtils.makeDefaultCSS(null, '#fff'));
|
|
@@ -57,7 +58,7 @@ const GetVideo = ({ state }) => {
|
|
|
57
58
|
compositions.setCanvasContent(null);
|
|
58
59
|
}
|
|
59
60
|
compositions.setCurrentCompositionMetadata({
|
|
60
|
-
props:
|
|
61
|
+
props: no_react_1.NoReactInternals.deserializeJSONWithCustomFields(state.serializedResolvedPropsWithSchema),
|
|
61
62
|
durationInFrames: state.compositionDurationInFrames,
|
|
62
63
|
fps: state.compositionFps,
|
|
63
64
|
height: state.compositionHeight,
|
|
@@ -217,12 +218,12 @@ if (typeof window !== 'undefined') {
|
|
|
217
218
|
const { props, defaultProps, ...data } = resolved;
|
|
218
219
|
return {
|
|
219
220
|
...data,
|
|
220
|
-
serializedResolvedPropsWithCustomSchema:
|
|
221
|
+
serializedResolvedPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithDate({
|
|
221
222
|
data: props,
|
|
222
223
|
indent: undefined,
|
|
223
224
|
staticBase: null,
|
|
224
225
|
}).serializedString,
|
|
225
|
-
serializedDefaultPropsWithCustomSchema:
|
|
226
|
+
serializedDefaultPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithDate({
|
|
226
227
|
data: defaultProps,
|
|
227
228
|
indent: undefined,
|
|
228
229
|
staticBase: null,
|
|
@@ -255,12 +256,12 @@ if (typeof window !== 'undefined') {
|
|
|
255
256
|
const { props, defaultProps, ...data } = prom;
|
|
256
257
|
return {
|
|
257
258
|
...data,
|
|
258
|
-
serializedResolvedPropsWithCustomSchema:
|
|
259
|
+
serializedResolvedPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithDate({
|
|
259
260
|
data: props,
|
|
260
261
|
indent: undefined,
|
|
261
262
|
staticBase: null,
|
|
262
263
|
}).serializedString,
|
|
263
|
-
serializedDefaultPropsWithCustomSchema:
|
|
264
|
+
serializedDefaultPropsWithCustomSchema: no_react_1.NoReactInternals.serializeJSONWithDate({
|
|
264
265
|
data: defaultProps,
|
|
265
266
|
indent: undefined,
|
|
266
267
|
staticBase: null,
|
package/dist/webpack-config.js
CHANGED
|
@@ -34,7 +34,7 @@ const fast_refresh_1 = require("./fast-refresh");
|
|
|
34
34
|
const stringify_with_circular_references_1 = require("./stringify-with-circular-references");
|
|
35
35
|
const webpack_cache_1 = require("./webpack-cache");
|
|
36
36
|
const esbuild = require("esbuild");
|
|
37
|
-
const
|
|
37
|
+
const no_react_1 = require("remotion/no-react");
|
|
38
38
|
const optional_dependencies_1 = require("./optional-dependencies");
|
|
39
39
|
if (!(react_dom_1.default === null || react_dom_1.default === void 0 ? void 0 : react_dom_1.default.version)) {
|
|
40
40
|
throw new Error('Could not find "react-dom" package. Did you install it?');
|
|
@@ -111,7 +111,7 @@ const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpa
|
|
|
111
111
|
],
|
|
112
112
|
output: {
|
|
113
113
|
hashFunction: 'xxhash64',
|
|
114
|
-
filename:
|
|
114
|
+
filename: no_react_1.NoReactInternals.bundleName,
|
|
115
115
|
devtoolModuleFilenameTemplate: '[resource-path]',
|
|
116
116
|
assetModuleFilename: environment === 'development' ? '[path][name][ext]' : '[hash][ext]',
|
|
117
117
|
},
|
|
@@ -125,6 +125,8 @@ const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpa
|
|
|
125
125
|
'react-dom/client': shouldUseReactDomClient
|
|
126
126
|
? require.resolve('react-dom/client')
|
|
127
127
|
: require.resolve('react-dom'),
|
|
128
|
+
// Note: Order matters here! "remotion/no-react" must be matched before "remotion"
|
|
129
|
+
'remotion/no-react': require.resolve('remotion/no-react'),
|
|
128
130
|
remotion: require.resolve('remotion'),
|
|
129
131
|
},
|
|
130
132
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/bundler",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.73",
|
|
4
4
|
"description": "Bundler for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"react-refresh": "0.9.0",
|
|
24
24
|
"style-loader": "2.0.0",
|
|
25
25
|
"webpack": "5.83.1",
|
|
26
|
-
"remotion": "4.0.
|
|
26
|
+
"remotion": "4.0.73"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"react": ">=16.8.0",
|