@remotion/bundler 4.0.0-prefetch.10 → 4.0.0-prefetch.12

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.
Files changed (40) hide show
  1. package/LICENSE.md +7 -7
  2. package/dist/bundle-mode.d.ts +0 -0
  3. package/dist/bundle-mode.js +0 -0
  4. package/dist/bundle.d.ts +15 -5
  5. package/dist/bundle.js +43 -10
  6. package/dist/copy-dir.d.ts +0 -0
  7. package/dist/copy-dir.js +0 -0
  8. package/dist/esbuild-loader/index.d.ts +0 -0
  9. package/dist/esbuild-loader/index.js +0 -0
  10. package/dist/esbuild-loader/interfaces.d.ts +0 -0
  11. package/dist/esbuild-loader/interfaces.js +0 -0
  12. package/dist/fast-refresh/helpers.d.ts +0 -0
  13. package/dist/fast-refresh/helpers.js +0 -0
  14. package/dist/fast-refresh/index.d.ts +0 -0
  15. package/dist/fast-refresh/index.js +0 -0
  16. package/dist/fast-refresh/loader.d.ts +0 -0
  17. package/dist/fast-refresh/loader.js +0 -0
  18. package/dist/fast-refresh/runtime.d.ts +0 -0
  19. package/dist/fast-refresh/runtime.js +0 -0
  20. package/dist/homepage/homepage.d.ts +0 -0
  21. package/dist/homepage/homepage.js +0 -0
  22. package/dist/index-html.d.ts +2 -1
  23. package/dist/index-html.js +7 -1
  24. package/dist/index.d.ts +8 -7
  25. package/dist/index.js +0 -0
  26. package/dist/renderEntry.d.ts +0 -0
  27. package/dist/renderEntry.js +27 -4
  28. package/dist/setup-environment.d.ts +0 -0
  29. package/dist/setup-environment.js +0 -0
  30. package/dist/test/validate-bundle.test.d.ts +1 -0
  31. package/dist/test/validate-bundle.test.js +10 -0
  32. package/dist/test/validate-public-dir.test.d.ts +0 -0
  33. package/dist/test/validate-public-dir.test.js +0 -0
  34. package/dist/validate-public-dir.d.ts +0 -0
  35. package/dist/validate-public-dir.js +0 -0
  36. package/dist/webpack-cache.d.ts +0 -0
  37. package/dist/webpack-cache.js +0 -0
  38. package/dist/webpack-config.d.ts +2 -2
  39. package/dist/webpack-config.js +3 -3
  40. package/package.json +7 -7
package/LICENSE.md CHANGED
@@ -1,34 +1,34 @@
1
1
  # Remotion License
2
2
 
3
- Depending on the type of your legal entity, you are granted permission to use Remotion for your project. Individuals and small companies are allowed to use Remotion create videos for free (even commercial), while a company license is required for for-profit organisations of a certain size. This two-tier system was designed to ensure funding for this project while still allowing the source code to be available and the program to be free for most. Read below for the exact terms of use.
3
+ Depending on the type of your legal entity, you are granted permission to use Remotion for your project. Individuals and small companies are allowed to use Remotion to create videos for free (even commercial), while a company license is required for for-profit organizations of a certain size. This two-tier system was designed to ensure funding for this project while still allowing the source code to be available and the program to be free for most. Read below for the exact terms of use.
4
4
 
5
5
  - [Free license](#free-license)
6
6
  - [Company license](#company-license)
7
7
 
8
8
  ## Free license
9
9
 
10
- Copyright © 2022 [Jonny Burger](https://jonny.io)
10
+ Copyright © 2022 [Remotion](https://www.remotion.dev/)
11
11
 
12
12
  ### Eligibility
13
13
 
14
14
  You are eligible to use Remotion for free if you are:
15
15
 
16
16
  - an individual
17
- - a for-profit organisation with up to 3 employees
18
- - a non-profit or not-for-profit organisation
17
+ - a for-profit organization with up to 3 employees
18
+ - a non-profit or not-for-profit organization
19
19
  - evaluating whether Remotion is a good fit, and are not yet using it in a commercial way
20
20
 
21
21
  ### Allowed use cases
22
22
 
23
- Permission is hereby granted, free of charge, to any person eligible for the "Free license", to use the software non-commercially or commercially for the purpose of creating videos and images and to modify and the software to their own liking, for the purpose of fulfilling their custom use case or to contribute bug fixes or improvements back to Remotion.
23
+ Permission is hereby granted, free of charge, to any person eligible for the "Free license", to use the software non-commercially or commercially for the purpose of creating videos and images and to modify the software to their own liking, for the purpose of fulfilling their custom use case or to contribute bug fixes or improvements back to Remotion.
24
24
 
25
25
  ### Disallowed use cases
26
26
 
27
- It is not allowed to copy or modify Remotion code for the purpose of selling, renting, licensing, relicensing, sublicensing your own derivate of Remotion.
27
+ It is not allowed to copy or modify Remotion code for the purpose of selling, renting, licensing, relicensing, or sublicensing your own derivate of Remotion.
28
28
 
29
29
  ### Warranty notice
30
30
 
31
- The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the author or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
31
+ The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the author or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
32
32
 
33
33
  ### Support
34
34
 
File without changes
File without changes
package/dist/bundle.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { WebpackOverrideFn } from 'remotion';
2
2
  import webpack from 'webpack';
3
- export declare type BundleOptions = {
3
+ export declare type LegacyBundleOptions = {
4
4
  webpackOverride?: WebpackOverrideFn;
5
5
  outDir?: string;
6
6
  enableCaching?: boolean;
@@ -8,11 +8,21 @@ export declare type BundleOptions = {
8
8
  rootDir?: string;
9
9
  publicDir?: string | null;
10
10
  };
11
- export declare const getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgressUpdate, options, }: {
11
+ export declare const getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, }: {
12
12
  outDir: string;
13
13
  entryPoint: string;
14
14
  resolvedRemotionRoot: string;
15
- onProgressUpdate?: ((progress: number) => void) | undefined;
16
- options?: BundleOptions | undefined;
15
+ onProgress?: ((progress: number) => void) | undefined;
16
+ options?: LegacyBundleOptions | undefined;
17
17
  }) => [string, webpack.Configuration];
18
- export declare const bundle: (entryPoint: string, onProgressUpdate?: ((progress: number) => void) | undefined, options?: BundleOptions) => Promise<string>;
18
+ export declare type BundleOptions = {
19
+ entryPoint: string;
20
+ onProgress?: (progress: number) => void;
21
+ } & LegacyBundleOptions;
22
+ declare type Arguments = [options: BundleOptions] | [
23
+ entryPoint: string,
24
+ onProgress?: (progress: number) => void,
25
+ options?: LegacyBundleOptions
26
+ ];
27
+ export declare function bundle(...args: Arguments): Promise<string>;
28
+ export {};
package/dist/bundle.js CHANGED
@@ -13,7 +13,6 @@ const worker_threads_1 = require("worker_threads");
13
13
  const copy_dir_1 = require("./copy-dir");
14
14
  const index_html_1 = require("./index-html");
15
15
  const webpack_config_1 = require("./webpack-config");
16
- const entry = require.resolve('./renderEntry');
17
16
  const promisified = (0, util_1.promisify)(webpack_1.default);
18
17
  const prepareOutDir = async (specified) => {
19
18
  if (specified) {
@@ -34,15 +33,16 @@ const trimTrailingSlash = (p) => {
34
33
  }
35
34
  return p;
36
35
  };
37
- const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgressUpdate, options, }) => {
36
+ const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, }) => {
38
37
  var _a, _b;
38
+ const entry = require.resolve('./renderEntry');
39
39
  return (0, webpack_config_1.webpackConfig)({
40
40
  entry,
41
41
  userDefinedComponent: entryPoint,
42
42
  outDir,
43
43
  environment: 'production',
44
44
  webpackOverride: (_a = options === null || options === void 0 ? void 0 : options.webpackOverride) !== null && _a !== void 0 ? _a : ((f) => f),
45
- onProgressUpdate,
45
+ onProgress,
46
46
  enableCaching: (_b = options === null || options === void 0 ? void 0 : options.enableCaching) !== null && _b !== void 0 ? _b : true,
47
47
  maxTimelineTracks: 15,
48
48
  // For production, the variables are set dynamically
@@ -53,10 +53,42 @@ const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgressUpdate,
53
53
  });
54
54
  };
55
55
  exports.getConfig = getConfig;
56
- const bundle = async (entryPoint, onProgressUpdate, options) => {
57
- var _a, _b, _c;
58
- const resolvedRemotionRoot = (_a = options === null || options === void 0 ? void 0 : options.rootDir) !== null && _a !== void 0 ? _a : process.cwd();
59
- const outDir = await prepareOutDir((_b = options === null || options === void 0 ? void 0 : options.outDir) !== null && _b !== void 0 ? _b : null);
56
+ const convertArgumentsIntoOptions = (args) => {
57
+ var _a;
58
+ if (args.length === 0) {
59
+ throw new TypeError('bundle() was called without arguments');
60
+ }
61
+ const firstArg = args[0];
62
+ if (typeof firstArg === 'string') {
63
+ return {
64
+ entryPoint: firstArg,
65
+ onProgress: args[1],
66
+ ...((_a = args[2]) !== null && _a !== void 0 ? _a : {}),
67
+ };
68
+ }
69
+ if (typeof firstArg.entryPoint !== 'string') {
70
+ throw new TypeError('bundle() was called without the `entryPoint` option');
71
+ }
72
+ return firstArg;
73
+ };
74
+ const recursionLimit = 5;
75
+ const findClosestPackageJsonFolder = (currentDir) => {
76
+ let possiblePackageJson = '';
77
+ for (let i = 0; i < recursionLimit; i++) {
78
+ possiblePackageJson = path_1.default.join(currentDir, 'package.json');
79
+ const exists = fs_1.default.existsSync(possiblePackageJson);
80
+ if (exists) {
81
+ return path_1.default.dirname(possiblePackageJson);
82
+ }
83
+ currentDir = path_1.default.dirname(currentDir);
84
+ }
85
+ return null;
86
+ };
87
+ async function bundle(...args) {
88
+ var _a, _b, _c, _d;
89
+ const actualArgs = convertArgumentsIntoOptions(args);
90
+ const resolvedRemotionRoot = (_b = (_a = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.rootDir) !== null && _a !== void 0 ? _a : findClosestPackageJsonFolder(actualArgs.entryPoint)) !== null && _b !== void 0 ? _b : process.cwd();
91
+ const outDir = await prepareOutDir((_c = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.outDir) !== null && _c !== void 0 ? _c : null);
60
92
  // The config might use an override which might use
61
93
  // `process.cwd()`. The context should always be the Remotion root.
62
94
  // This is not supported in worker threads (used for tests)
@@ -64,11 +96,12 @@ const bundle = async (entryPoint, onProgressUpdate, options) => {
64
96
  if (worker_threads_1.isMainThread) {
65
97
  process.chdir(resolvedRemotionRoot);
66
98
  }
99
+ const { entryPoint, onProgress, ...options } = actualArgs;
67
100
  const [, config] = (0, exports.getConfig)({
68
101
  outDir,
69
102
  entryPoint,
70
103
  resolvedRemotionRoot,
71
- onProgressUpdate,
104
+ onProgress,
72
105
  options,
73
106
  });
74
107
  const output = await promisified([config]);
@@ -82,7 +115,7 @@ const bundle = async (entryPoint, onProgressUpdate, options) => {
82
115
  if (errors !== undefined && errors.length > 0) {
83
116
  throw new Error(errors[0].message + '\n' + errors[0].details);
84
117
  }
85
- const baseDir = (_c = options === null || options === void 0 ? void 0 : options.publicPath) !== null && _c !== void 0 ? _c : '/';
118
+ const baseDir = (_d = actualArgs === null || actualArgs === void 0 ? void 0 : actualArgs.publicPath) !== null && _d !== void 0 ? _d : '/';
86
119
  const staticHash = '/' +
87
120
  [trimTrailingSlash(trimLeadingSlash(baseDir)), 'public']
88
121
  .filter(Boolean)
@@ -104,5 +137,5 @@ const bundle = async (entryPoint, onProgressUpdate, options) => {
104
137
  });
105
138
  fs_1.default.writeFileSync(path_1.default.join(outDir, 'index.html'), html);
106
139
  return outDir;
107
- };
140
+ }
108
141
  exports.bundle = bundle;
File without changes
package/dist/copy-dir.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,8 +1,9 @@
1
- export declare const indexHtml: ({ baseDir, editorName, inputProps, staticHash, remotionRoot, previewServerCommand, }: {
1
+ export declare const indexHtml: ({ baseDir, editorName, inputProps, envVariables, staticHash, remotionRoot, previewServerCommand, }: {
2
2
  staticHash: string;
3
3
  baseDir: string;
4
4
  editorName: string | null;
5
5
  inputProps: object | null;
6
+ envVariables?: Record<string, string> | undefined;
6
7
  remotionRoot: string;
7
8
  previewServerCommand: string | null;
8
9
  }) => string;
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.indexHtml = void 0;
7
7
  const path_1 = __importDefault(require("path"));
8
- const indexHtml = ({ baseDir, editorName, inputProps, staticHash, remotionRoot, previewServerCommand, }) => `
8
+ const indexHtml = ({ baseDir, editorName, inputProps, envVariables, staticHash, remotionRoot, previewServerCommand, }) => `
9
9
  <!DOCTYPE html>
10
10
  <html lang="en">
11
11
  <head>
@@ -29,6 +29,12 @@ const indexHtml = ({ baseDir, editorName, inputProps, staticHash, remotionRoot,
29
29
  ? `<script>window.remotion_inputProps = ${JSON.stringify(JSON.stringify(inputProps))};</script>
30
30
  `
31
31
  : ''}
32
+ ${envVariables
33
+ ? `<script> window.process = {
34
+ env: ${JSON.stringify(envVariables)}
35
+ };</script>
36
+ `
37
+ : ''}
32
38
 
33
39
  <div id="container"></div>
34
40
  <div id="menuportal-0"></div>
package/dist/index.d.ts CHANGED
@@ -2,13 +2,13 @@ import esbuild = require('esbuild');
2
2
  import webpack = require('webpack');
3
3
  export declare const BundlerInternals: {
4
4
  esbuild: typeof esbuild;
5
- webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgressUpdate, enableCaching, envVariables, maxTimelineTracks, entryPoints, remotionRoot, keyboardShortcutsEnabled, }: {
5
+ webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, envVariables, maxTimelineTracks, entryPoints, remotionRoot, keyboardShortcutsEnabled, }: {
6
6
  entry: string;
7
7
  userDefinedComponent: string;
8
8
  outDir: string;
9
9
  environment: "development" | "production";
10
10
  webpackOverride: import("remotion/dist/internals").WebpackOverrideFn;
11
- onProgressUpdate?: ((f: number) => void) | undefined;
11
+ onProgress?: ((f: number) => void) | undefined;
12
12
  enableCaching?: boolean | undefined;
13
13
  envVariables: Record<string, string>;
14
14
  maxTimelineTracks: number;
@@ -16,24 +16,25 @@ export declare const BundlerInternals: {
16
16
  entryPoints: string[];
17
17
  remotionRoot: string;
18
18
  }) => [string, webpack.Configuration];
19
- indexHtml: ({ baseDir, editorName, inputProps, staticHash, remotionRoot, previewServerCommand, }: {
19
+ indexHtml: ({ baseDir, editorName, inputProps, envVariables, staticHash, remotionRoot, previewServerCommand, }: {
20
20
  staticHash: string;
21
21
  baseDir: string;
22
22
  editorName: string | null;
23
23
  inputProps: object | null;
24
+ envVariables?: Record<string, string> | undefined;
24
25
  remotionRoot: string;
25
26
  previewServerCommand: string | null;
26
27
  }) => string;
27
28
  cacheExists: (remotionRoot: string, environment: "development" | "production", hash: string) => "exists" | "other-exists" | "does-not-exist";
28
29
  clearCache: (remotionRoot: string) => Promise<void>;
29
- getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgressUpdate, options, }: {
30
+ getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, }: {
30
31
  outDir: string;
31
32
  entryPoint: string;
32
33
  resolvedRemotionRoot: string;
33
- onProgressUpdate?: ((progress: number) => void) | undefined;
34
- options?: import("./bundle").BundleOptions | undefined;
34
+ onProgress?: ((progress: number) => void) | undefined;
35
+ options?: import("./bundle").LegacyBundleOptions | undefined;
35
36
  }) => [string, webpack.Configuration];
36
37
  };
37
- export { bundle, BundleOptions } from './bundle';
38
+ export { bundle, BundleOptions, LegacyBundleOptions } from './bundle';
38
39
  export { webpack };
39
40
  export declare type WebpackConfiguration = webpack.Configuration;
package/dist/index.js CHANGED
File without changes
File without changes
@@ -15,6 +15,19 @@ const remotion_1 = require("remotion");
15
15
  const bundle_mode_1 = require("./bundle-mode");
16
16
  const homepage_1 = require("./homepage/homepage");
17
17
  remotion_1.Internals.CSSUtils.injectCSS(remotion_1.Internals.CSSUtils.makeDefaultCSS(null, '#fff'));
18
+ const getCanSerializeDefaultProps = (object) => {
19
+ try {
20
+ const str = JSON.stringify(object);
21
+ // 256MB is the theoretical limit, making it throw if over 90% of that is reached.
22
+ return str.length < 256 * 1024 * 1024 * 0.9;
23
+ }
24
+ catch (err) {
25
+ if (err.message.includes('Invalid string length')) {
26
+ return false;
27
+ }
28
+ throw err;
29
+ }
30
+ };
18
31
  const GetVideo = ({ state }) => {
19
32
  const video = remotion_1.Internals.useVideo();
20
33
  const compositions = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
@@ -82,7 +95,7 @@ let cleanupVideoContainer = () => {
82
95
  let cleanupExplainerContainer = () => {
83
96
  explainerContainer.innerHTML = '';
84
97
  };
85
- const waitForRootHandle = (0, remotion_1.delayRender)('Loading root component');
98
+ const waitForRootHandle = (0, remotion_1.delayRender)('Loading root component - See https://remotion.dev/docs/troubleshooting/loading-root-component if you experience a timeout');
86
99
  const WaitForRoot = () => {
87
100
  const [Root, setRoot] = (0, react_1.useState)(() => remotion_1.Internals.getRoot());
88
101
  (0, react_1.useEffect)(() => {
@@ -161,9 +174,19 @@ if (typeof window !== 'undefined') {
161
174
  if (!remotion_1.Internals.compositionsRef.current) {
162
175
  throw new Error('Unexpectedly did not have a CompositionManager');
163
176
  }
164
- return remotion_1.Internals.compositionsRef.current
165
- .getCompositions()
166
- .map((c) => {
177
+ const compositions = remotion_1.Internals.compositionsRef.current.getCompositions();
178
+ const canSerializeDefaultProps = getCanSerializeDefaultProps(compositions);
179
+ if (!canSerializeDefaultProps) {
180
+ console.warn('defaultProps are too big to serialize - trying to find the problematic composition...');
181
+ for (const comp of compositions) {
182
+ if (!getCanSerializeDefaultProps(comp)) {
183
+ throw new Error(`defaultProps too big - could not serialize - the defaultProps of composition with ID ${comp.id} - the object that was passed to defaultProps was too big. Learn how to mitigate this error by visiting https://remotion.dev/docs/troubleshooting/serialize-defaultprops`);
184
+ }
185
+ }
186
+ console.warn('Could not single out a problematic composition - The composition list as a whole is too big to serialize.');
187
+ throw new Error('defaultProps too big - Could not serialize - an object that was passed to defaultProps was too big. Learn how to mitigate this error by visiting https://remotion.dev/docs/troubleshooting/serialize-defaultprops');
188
+ }
189
+ return compositions.map((c) => {
167
190
  return {
168
191
  defaultProps: c.defaultProps,
169
192
  durationInFrames: c.durationInFrames,
File without changes
File without changes
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const vitest_1 = require("vitest");
4
+ const bundle_1 = require("../bundle");
5
+ (0, vitest_1.test)('Should reject bad bundle options', () => {
6
+ // @ts-expect-error
7
+ (0, vitest_1.expect)(() => (0, bundle_1.bundle)()).rejects.toThrow(/bundle\(\) was called without arguments/);
8
+ // @ts-expect-error
9
+ (0, vitest_1.expect)(() => (0, bundle_1.bundle)({})).rejects.toThrow(/bundle\(\) was called without the `entryPoint` option/);
10
+ });
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,11 +1,11 @@
1
1
  import type { WebpackConfiguration, WebpackOverrideFn } from 'remotion';
2
- export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgressUpdate, enableCaching, envVariables, maxTimelineTracks, entryPoints, remotionRoot, keyboardShortcutsEnabled, }: {
2
+ export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, envVariables, maxTimelineTracks, entryPoints, remotionRoot, keyboardShortcutsEnabled, }: {
3
3
  entry: string;
4
4
  userDefinedComponent: string;
5
5
  outDir: string;
6
6
  environment: 'development' | 'production';
7
7
  webpackOverride: WebpackOverrideFn;
8
- onProgressUpdate?: ((f: number) => void) | undefined;
8
+ onProgress?: ((f: number) => void) | undefined;
9
9
  enableCaching?: boolean | undefined;
10
10
  envVariables: Record<string, string>;
11
11
  maxTimelineTracks: number;
@@ -50,7 +50,7 @@ const esbuildLoaderOptions = {
50
50
  function truthy(value) {
51
51
  return Boolean(value);
52
52
  }
53
- const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgressUpdate, enableCaching = true, envVariables, maxTimelineTracks, entryPoints, remotionRoot, keyboardShortcutsEnabled, }) => {
53
+ const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, envVariables, maxTimelineTracks, entryPoints, remotionRoot, keyboardShortcutsEnabled, }) => {
54
54
  const conf = webpackOverride({
55
55
  optimization: {
56
56
  minimize: false,
@@ -95,8 +95,8 @@ const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpa
95
95
  ]
96
96
  : [
97
97
  new webpack_1.ProgressPlugin((p) => {
98
- if (onProgressUpdate) {
99
- onProgressUpdate(Number((p * 100).toFixed(2)));
98
+ if (onProgress) {
99
+ onProgress(Number((p * 100).toFixed(2)));
100
100
  }
101
101
  }),
102
102
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "4.0.0-prefetch.10+cf59c29c7",
3
+ "version": "4.0.0-prefetch.12+c7eb5bd76",
4
4
  "description": "Bundler for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -26,9 +26,9 @@
26
26
  "css-loader": "5.2.7",
27
27
  "esbuild": "0.14.19",
28
28
  "react-refresh": "0.9.0",
29
- "remotion": "4.0.0-prefetch.10+cf59c29c7",
29
+ "remotion": "4.0.0-prefetch.12+c7eb5bd76",
30
30
  "style-loader": "2.0.0",
31
- "webpack": "5.72.0"
31
+ "webpack": "5.74.0"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": ">=16.8.0",
@@ -42,16 +42,16 @@
42
42
  "@types/webpack-env": "^1.16.0",
43
43
  "@typescript-eslint/eslint-plugin": "5.18.0",
44
44
  "@typescript-eslint/parser": "5.18.0",
45
- "eslint": "8.13.0",
45
+ "eslint": "8.25.0",
46
46
  "eslint-plugin-10x": "1.5.2",
47
47
  "eslint-plugin-react": "7.29.4",
48
48
  "eslint-plugin-react-hooks": "4.4.0",
49
- "prettier": "^2.0.5",
49
+ "prettier": "^2.7.1",
50
50
  "prettier-plugin-organize-imports": "^2.3.4",
51
51
  "react": "^18.0.0",
52
52
  "react-dom": "^18.0.0",
53
53
  "typescript": "^4.7.0",
54
- "vitest": "^0.18.0"
54
+ "vitest": "0.24.3"
55
55
  },
56
56
  "keywords": [
57
57
  "remotion",
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "cf59c29c7b500377b7157afb761754159156d25f"
67
+ "gitHead": "c7eb5bd76f2f89677f007a54e1bc5d3e3403094f"
68
68
  }