@remotion/bundler 4.0.77 → 4.0.80

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.
@@ -17,6 +17,9 @@ export type RenderDefaults = {
17
17
  pixelFormat: string;
18
18
  audioBitrate: string | null;
19
19
  videoBitrate: string | null;
20
+ encodingBufferSize: string | null;
21
+ encodingMaxRate: string | null;
22
+ userAgent: string | null;
20
23
  everyNthFrame: number;
21
24
  numberOfGifLoops: number | null;
22
25
  delayRenderTimeout: number;
package/dist/index.d.ts CHANGED
@@ -50,5 +50,6 @@ export declare const BundlerInternals: {
50
50
  }) => import("remotion").StaticFile[];
51
51
  };
52
52
  export { bundle, BundleOptions, LegacyBundleOptions } from './bundle';
53
+ export type { RenderDefaults } from './index-html';
53
54
  export { WebpackConfiguration, WebpackOverrideFn } from './webpack-config';
54
55
  export { webpack };
@@ -8,6 +8,7 @@ const OPTIONAL_DEPENDENCIES = [
8
8
  'react-native-reanimated',
9
9
  'react-native-reanimated/package.json',
10
10
  ];
11
+ const SOURCE_MAP_IGNORE = ['path', 'fs'];
11
12
  class AllowOptionalDependenciesPlugin {
12
13
  filter(error) {
13
14
  for (const dependency of OPTIONAL_DEPENDENCIES) {
@@ -15,6 +16,12 @@ class AllowOptionalDependenciesPlugin {
15
16
  return false;
16
17
  }
17
18
  }
19
+ for (const dependency of SOURCE_MAP_IGNORE) {
20
+ if (error.message.includes(`Can't resolve '${dependency}'`) &&
21
+ error.message.includes('source-map')) {
22
+ return false;
23
+ }
24
+ }
18
25
  return true;
19
26
  }
20
27
  apply(compiler) {
@@ -73,7 +73,8 @@ const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpa
73
73
  aggregateTimeout: 0,
74
74
  ignored: ['**/.git/**', '**/node_modules/**'],
75
75
  },
76
- devtool: 'cheap-module-source-map',
76
+ // Higher source map quality in development to power line numbers for stack traces
77
+ devtool: environment === 'development' ? 'source-map' : 'cheap-module-source-map',
77
78
  entry: [
78
79
  // Fast Refresh must come first,
79
80
  // because setup-environment imports ReactDOM.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "4.0.77",
3
+ "version": "4.0.80",
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.77"
26
+ "remotion": "4.0.80"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": ">=16.8.0",