@remotion/bundler 4.0.0-alpha6 → 4.0.0-alpha8

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.
@@ -1,5 +1,4 @@
1
1
  import type { Compiler } from 'webpack';
2
- export declare const OPTIONAL_DEPENDENCIES: string[];
3
2
  export declare class AllowOptionalDependenciesPlugin {
4
3
  filter(error: Error): boolean;
5
4
  apply(compiler: Compiler): void;
@@ -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 = exports.OPTIONAL_DEPENDENCIES = void 0;
5
- exports.OPTIONAL_DEPENDENCIES = ['zod', '@remotion/zod-types'];
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 exports.OPTIONAL_DEPENDENCIES) {
13
+ for (const dependency of OPTIONAL_DEPENDENCIES) {
9
14
  if (error.message.includes(`Can't resolve '${dependency}'`)) {
10
15
  return false;
11
16
  }
@@ -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
  }
@@ -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('Found no composition with the name ' + state.compositionName);
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({
@@ -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-alpha6",
3
+ "version": "4.0.0-alpha8",
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-alpha6",
23
+ "remotion": "4.0.0-alpha8",
24
24
  "style-loader": "2.0.0",
25
25
  "webpack": "5.76.1"
26
26
  },