@remotion/bundler 4.0.0-alpha6 → 4.0.0-alpha7
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/optional-depdendencies.d.ts +5 -0
- package/dist/optional-depdendencies.js +27 -0
- package/dist/optional-dependencies.d.ts +0 -1
- package/dist/optional-dependencies.js +8 -3
- package/dist/read-recursively.js +2 -2
- package/dist/renderEntry.js +3 -1
- package/dist/webpack-config.js +0 -1
- package/package.json +2 -2
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// When Webpack cannot resolve these dependencies, it will not print an error message.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AllowOptionalDependenciesPlugin = void 0;
|
|
5
|
+
const OPTIONAL_DEPENDENCIES = [
|
|
6
|
+
'zod',
|
|
7
|
+
'@remotion/zod-types',
|
|
8
|
+
'react-native-reanimated',
|
|
9
|
+
'react-native-reanimated/package.json',
|
|
10
|
+
];
|
|
11
|
+
class AllowOptionalDependenciesPlugin {
|
|
12
|
+
filter(error) {
|
|
13
|
+
for (const dependency of OPTIONAL_DEPENDENCIES) {
|
|
14
|
+
if (error.message.includes(`Can't resolve '${dependency}'`)) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
apply(compiler) {
|
|
21
|
+
compiler.hooks.afterEmit.tap('AllowOptionalDependenciesPlugin', (compilation) => {
|
|
22
|
+
compilation.errors = compilation.errors.filter(this.filter);
|
|
23
|
+
compilation.warnings = compilation.warnings.filter(this.filter);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.AllowOptionalDependenciesPlugin = AllowOptionalDependenciesPlugin;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// When Webpack cannot resolve these dependencies, it will not print an error message.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.AllowOptionalDependenciesPlugin =
|
|
5
|
-
|
|
4
|
+
exports.AllowOptionalDependenciesPlugin = void 0;
|
|
5
|
+
const OPTIONAL_DEPENDENCIES = [
|
|
6
|
+
'zod',
|
|
7
|
+
'@remotion/zod-types',
|
|
8
|
+
'react-native-reanimated',
|
|
9
|
+
'react-native-reanimated/package.json',
|
|
10
|
+
];
|
|
6
11
|
class AllowOptionalDependenciesPlugin {
|
|
7
12
|
filter(error) {
|
|
8
|
-
for (const dependency of
|
|
13
|
+
for (const dependency of OPTIONAL_DEPENDENCIES) {
|
|
9
14
|
if (error.message.includes(`Can't resolve '${dependency}'`)) {
|
|
10
15
|
return false;
|
|
11
16
|
}
|
package/dist/read-recursively.js
CHANGED
|
@@ -57,7 +57,7 @@ const readRecursively = ({ folder, output = [], startPath, staticHash, limit, })
|
|
|
57
57
|
name: node_path_1.default.join(folder, file),
|
|
58
58
|
lastModified: Math.floor(stat.mtimeMs),
|
|
59
59
|
sizeInBytes: stat.size,
|
|
60
|
-
src: staticHash + '/' + node_path_1.default.join(folder, file),
|
|
60
|
+
src: staticHash + '/' + encodeURIComponent(node_path_1.default.join(folder, file)),
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
else if (stat.isSymbolicLink()) {
|
|
@@ -68,7 +68,7 @@ const readRecursively = ({ folder, output = [], startPath, staticHash, limit, })
|
|
|
68
68
|
name: realpath,
|
|
69
69
|
lastModified: Math.floor(realStat.mtimeMs),
|
|
70
70
|
sizeInBytes: realStat.size,
|
|
71
|
-
src: staticHash + '/' + realpath,
|
|
71
|
+
src: staticHash + '/' + encodeURIComponent(realpath),
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
}
|
package/dist/renderEntry.js
CHANGED
|
@@ -44,7 +44,9 @@ const GetVideo = ({ state }) => {
|
|
|
44
44
|
if (!video && compositions.compositions.length > 0) {
|
|
45
45
|
const foundComposition = compositions.compositions.find((c) => c.id === state.compositionName);
|
|
46
46
|
if (!foundComposition) {
|
|
47
|
-
throw new Error(
|
|
47
|
+
throw new Error(`Found no composition with the name ${state.compositionName}. The following compositions were found instead: ${compositions.compositions
|
|
48
|
+
.map((c) => c.id)
|
|
49
|
+
.join(', ')}. All compositions must have their ID calculated deterministically and must be mounted at the same time.`);
|
|
48
50
|
}
|
|
49
51
|
compositions.setCurrentComposition((_a = foundComposition === null || foundComposition === void 0 ? void 0 : foundComposition.id) !== null && _a !== void 0 ? _a : null);
|
|
50
52
|
compositions.setCurrentCompositionMetadata({
|
package/dist/webpack-config.js
CHANGED
|
@@ -119,7 +119,6 @@ const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpa
|
|
|
119
119
|
? require.resolve('react-dom/client')
|
|
120
120
|
: require.resolve('react-dom'),
|
|
121
121
|
remotion: require.resolve('remotion'),
|
|
122
|
-
'react-native$': 'react-native-web',
|
|
123
122
|
},
|
|
124
123
|
},
|
|
125
124
|
module: {
|
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-alpha7",
|
|
4
4
|
"description": "Bundler for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"css-loader": "5.2.7",
|
|
21
21
|
"esbuild": "0.16.12",
|
|
22
22
|
"react-refresh": "0.9.0",
|
|
23
|
-
"remotion": "4.0.0-
|
|
23
|
+
"remotion": "4.0.0-alpha7",
|
|
24
24
|
"style-loader": "2.0.0",
|
|
25
25
|
"webpack": "5.76.1"
|
|
26
26
|
},
|