@remotion/bundler 4.0.115 → 4.0.117

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/bundle.d.ts CHANGED
@@ -19,7 +19,7 @@ export declare const getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onP
19
19
  maxTimelineTracks: number | null;
20
20
  onProgress?: ((progress: number) => void) | undefined;
21
21
  options?: LegacyBundleOptions | undefined;
22
- }) => [string, webpack.Configuration];
22
+ }) => Promise<[string, webpack.Configuration]>;
23
23
  export type BundleOptions = {
24
24
  entryPoint: string;
25
25
  onProgress?: (progress: number) => void;
package/dist/bundle.js CHANGED
@@ -145,14 +145,15 @@ async function bundle(...args) {
145
145
  process.chdir(resolvedRemotionRoot);
146
146
  }
147
147
  const { onProgress, ...options } = actualArgs;
148
- const [, config] = (0, exports.getConfig)({
148
+ const [, config] = await (0, exports.getConfig)({
149
149
  outDir,
150
150
  entryPoint,
151
151
  resolvedRemotionRoot,
152
152
  onProgress,
153
153
  options,
154
- bufferStateDelayInMilliseconds: (_e = actualArgs.bufferStateDelayInMilliseconds) !== null && _e !== void 0 ? _e : studio_shared_1.DEFAULT_BUFFER_STATE_DELAY_IN_MILLISECONDS,
155
- maxTimelineTracks: (_f = actualArgs.maxTimelineTracks) !== null && _f !== void 0 ? _f : studio_shared_1.DEFAULT_TIMELINE_TRACKS,
154
+ // Should be null to keep cache hash working
155
+ bufferStateDelayInMilliseconds: (_e = actualArgs.bufferStateDelayInMilliseconds) !== null && _e !== void 0 ? _e : null,
156
+ maxTimelineTracks: (_f = actualArgs.maxTimelineTracks) !== null && _f !== void 0 ? _f : null,
156
157
  });
157
158
  const output = await promisified([config]);
158
159
  if (node_worker_threads_1.isMainThread) {
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ export declare const BundlerInternals: {
15
15
  bufferStateDelayInMilliseconds: number | null;
16
16
  remotionRoot: string;
17
17
  poll: number | null;
18
- }) => [string, webpack.Configuration];
18
+ }) => Promise<[string, webpack.Configuration]>;
19
19
  indexHtml: ({ baseDir, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, gitSource, projectName, }: {
20
20
  staticHash: string;
21
21
  baseDir: string;
@@ -44,7 +44,7 @@ export declare const BundlerInternals: {
44
44
  maxTimelineTracks: number | null;
45
45
  onProgress?: ((progress: number) => void) | undefined;
46
46
  options?: import("./bundle").LegacyBundleOptions | undefined;
47
- }) => [string, webpack.Configuration];
47
+ }) => Promise<[string, webpack.Configuration]>;
48
48
  readRecursively: ({ folder, output, startPath, staticHash, limit, }: {
49
49
  folder: string;
50
50
  startPath: string;
@@ -1,6 +1,6 @@
1
1
  import type { Configuration } from 'webpack';
2
2
  export type WebpackConfiguration = Configuration;
3
- export type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration;
3
+ export type WebpackOverrideFn = (currentConfiguration: WebpackConfiguration) => WebpackConfiguration | Promise<WebpackConfiguration>;
4
4
  export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, }: {
5
5
  entry: string;
6
6
  userDefinedComponent: string;
@@ -14,4 +14,4 @@ export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, envi
14
14
  bufferStateDelayInMilliseconds: number | null;
15
15
  remotionRoot: string;
16
16
  poll: number | null;
17
- }) => [string, WebpackConfiguration];
17
+ }) => Promise<[string, WebpackConfiguration]>;
@@ -52,7 +52,7 @@ const esbuildLoaderOptions = {
52
52
  function truthy(value) {
53
53
  return Boolean(value);
54
54
  }
55
- const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, }) => {
55
+ const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, remotionRoot, keyboardShortcutsEnabled, bufferStateDelayInMilliseconds, poll, }) => {
56
56
  let lastProgress = 0;
57
57
  const isBun = typeof Bun !== 'undefined';
58
58
  const define = new webpack_1.default.DefinePlugin({
@@ -60,7 +60,7 @@ const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpa
60
60
  'process.env.KEYBOARD_SHORTCUTS_ENABLED': keyboardShortcutsEnabled,
61
61
  'process.env.BUFFER_STATE_DELAY_IN_MILLISECONDS': bufferStateDelayInMilliseconds,
62
62
  });
63
- const conf = webpackOverride({
63
+ const conf = await webpackOverride({
64
64
  optimization: {
65
65
  minimize: false,
66
66
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "4.0.115",
3
+ "version": "4.0.117",
4
4
  "description": "Bundler for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -25,9 +25,9 @@
25
25
  "style-loader": "2.0.0",
26
26
  "source-map": "0.7.3",
27
27
  "webpack": "5.83.1",
28
- "remotion": "4.0.115",
29
- "@remotion/studio": "4.0.115",
30
- "@remotion/studio-shared": "4.0.115"
28
+ "remotion": "4.0.117",
29
+ "@remotion/studio": "4.0.117",
30
+ "@remotion/studio-shared": "4.0.117"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">=16.8.0",