@remotion/bundler 3.3.10 → 3.3.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.
package/dist/bundle.js CHANGED
@@ -50,6 +50,7 @@ const getConfig = ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, optio
50
50
  entryPoints: [],
51
51
  remotionRoot: resolvedRemotionRoot,
52
52
  keyboardShortcutsEnabled: false,
53
+ poll: null,
53
54
  });
54
55
  };
55
56
  exports.getConfig = getConfig;
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ 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, onProgress, enableCaching, envVariables, maxTimelineTracks, entryPoints, remotionRoot, keyboardShortcutsEnabled, }: {
5
+ webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, envVariables, maxTimelineTracks, entryPoints, remotionRoot, keyboardShortcutsEnabled, poll, }: {
6
6
  entry: string;
7
7
  userDefinedComponent: string;
8
8
  outDir: string;
@@ -15,6 +15,7 @@ export declare const BundlerInternals: {
15
15
  keyboardShortcutsEnabled: boolean;
16
16
  entryPoints: string[];
17
17
  remotionRoot: string;
18
+ poll: number | null;
18
19
  }) => [string, webpack.Configuration];
19
20
  indexHtml: ({ baseDir, editorName, inputProps, envVariables, staticHash, remotionRoot, previewServerCommand, numberOfAudioTags, includeFavicon, title, }: {
20
21
  staticHash: string;
@@ -1,5 +1,5 @@
1
1
  import type { WebpackConfiguration, WebpackOverrideFn } from 'remotion';
2
- export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, envVariables, maxTimelineTracks, entryPoints, remotionRoot, keyboardShortcutsEnabled, }: {
2
+ export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, environment, webpackOverride, onProgress, enableCaching, envVariables, maxTimelineTracks, entryPoints, remotionRoot, keyboardShortcutsEnabled, poll, }: {
3
3
  entry: string;
4
4
  userDefinedComponent: string;
5
5
  outDir: string;
@@ -12,4 +12,5 @@ export declare const webpackConfig: ({ entry, userDefinedComponent, outDir, envi
12
12
  keyboardShortcutsEnabled: boolean;
13
13
  entryPoints: string[];
14
14
  remotionRoot: string;
15
+ poll: number | null;
15
16
  }) => [string, WebpackConfiguration];
@@ -51,7 +51,7 @@ const esbuildLoaderOptions = {
51
51
  function truthy(value) {
52
52
  return Boolean(value);
53
53
  }
54
- const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, envVariables, maxTimelineTracks, entryPoints, remotionRoot, keyboardShortcutsEnabled, }) => {
54
+ const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, envVariables, maxTimelineTracks, entryPoints, remotionRoot, keyboardShortcutsEnabled, poll, }) => {
55
55
  const conf = webpackOverride({
56
56
  optimization: {
57
57
  minimize: false,
@@ -64,12 +64,11 @@ const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpa
64
64
  },
65
65
  },
66
66
  watchOptions: {
67
+ poll: poll !== null && poll !== void 0 ? poll : undefined,
67
68
  aggregateTimeout: 0,
68
69
  ignored: ['**/.git/**', '**/node_modules/**'],
69
70
  },
70
- devtool: environment === 'development'
71
- ? 'cheap-module-source-map'
72
- : 'cheap-module-source-map',
71
+ devtool: 'cheap-module-source-map',
73
72
  entry: [
74
73
  // Fast Refresh must come first,
75
74
  // because setup-environment imports ReactDOM.
@@ -109,7 +108,7 @@ const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpa
109
108
  assetModuleFilename: environment === 'development' ? '[path][name][ext]' : '[hash][ext]',
110
109
  },
111
110
  resolve: {
112
- extensions: ['.ts', '.tsx', '.js', '.jsx'],
111
+ extensions: ['.ts', '.tsx', '.web.js', '.js', '.jsx'],
113
112
  alias: {
114
113
  // Only one version of react
115
114
  'react/jsx-runtime': require.resolve('react/jsx-runtime'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "3.3.10",
3
+ "version": "3.3.12",
4
4
  "description": "Bundler for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -26,7 +26,7 @@
26
26
  "css-loader": "5.2.7",
27
27
  "esbuild": "0.15.13",
28
28
  "react-refresh": "0.9.0",
29
- "remotion": "3.3.10",
29
+ "remotion": "3.3.12",
30
30
  "style-loader": "2.0.0",
31
31
  "webpack": "5.74.0"
32
32
  },
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "4909df63b9663ecc0294f186d5fe7efd59eee143"
67
+ "gitHead": "0c7c54df00df527cd7e395658324102461883e87"
68
68
  }