@remotion/bundler 4.0.226 → 4.0.228

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
@@ -184,6 +184,7 @@ const internalBundle = async (actualArgs) => {
184
184
  return;
185
185
  }
186
186
  symlinkWarningShown = true;
187
+ // eslint-disable-next-line no-console
187
188
  console.warn(`\nFound a symbolic link in the public folder (${absolutePath}). The symlink will be forwarded into the bundle.`);
188
189
  };
189
190
  if (node_fs_1.default.existsSync(from)) {
@@ -11,7 +11,7 @@ const isTypescriptInstalled = () => {
11
11
  require.resolve('typescript');
12
12
  return true;
13
13
  }
14
- catch (err) {
14
+ catch (_a) {
15
15
  return false;
16
16
  }
17
17
  };
@@ -122,6 +122,7 @@ function scheduleUpdate() {
122
122
  RefreshRuntime.performReactRefresh();
123
123
  }
124
124
  catch (err) {
125
+ // eslint-disable-next-line no-console
125
126
  console.warn('Warning: Failed to re-render. We will retry on the next Fast Refresh event.\n' +
126
127
  err);
127
128
  }
@@ -43,6 +43,10 @@ const indexHtml = ({ publicPath, editorName, inputProps, envVariables, staticHas
43
43
  <script>window.remotion_installedPackages = ${JSON.stringify(installedDependencies)}</script>
44
44
  <script>window.remotion_packageManager = ${JSON.stringify(packageManager)}</script>
45
45
  <script>window.remotion_publicFolderExists = ${publicFolderExists ? `"${publicFolderExists}"` : 'null'};</script>
46
+ <script>
47
+ window.siteVersion = '11';
48
+ window.remotion_version = '${remotion_1.VERSION}';
49
+ </script>
46
50
 
47
51
  <div id="video-container"></div>
48
52
  <div id="${remotion_1.Internals.REMOTION_STUDIO_CONTAINER_ELEMENT}"></div>
@@ -35,7 +35,7 @@ const statOrNull = (p) => {
35
35
  try {
36
36
  return (0, node_fs_1.statSync)(p);
37
37
  }
38
- catch (err) {
38
+ catch (_a) {
39
39
  return null;
40
40
  }
41
41
  };
@@ -17,7 +17,7 @@ const validatePublicDir = (p) => {
17
17
  throw new Error(`The public directory was specified as "${p}", and while this path exists on the filesystem, it is not a directory.`);
18
18
  }
19
19
  }
20
- catch (e) {
20
+ catch (_a) {
21
21
  // Path does not exist
22
22
  // Check if the parent path exists
23
23
  const parentPath = node_path_1.default.dirname(p);
@@ -16,9 +16,8 @@ const getWebpackCacheDir = (remotionRoot) => {
16
16
  if (node_fs_1.default.statSync(node_path_1.default.join(dir, 'package.json')).isFile()) {
17
17
  break;
18
18
  }
19
- // eslint-disable-next-line no-empty
20
19
  }
21
- catch (e) { }
20
+ catch (_a) { }
22
21
  const parent = node_path_1.default.dirname(dir);
23
22
  if (dir === parent) {
24
23
  dir = undefined;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/bundler"
4
4
  },
5
5
  "name": "@remotion/bundler",
6
- "version": "4.0.226",
6
+ "version": "4.0.228",
7
7
  "description": "Bundle Remotion compositions using Webpack",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -24,10 +24,10 @@
24
24
  "react-refresh": "0.9.0",
25
25
  "style-loader": "2.0.0",
26
26
  "source-map": "0.7.3",
27
- "webpack": "5.94.0",
28
- "remotion": "4.0.226",
29
- "@remotion/studio": "4.0.226",
30
- "@remotion/studio-shared": "4.0.226"
27
+ "webpack": "5.96.1",
28
+ "remotion": "4.0.228",
29
+ "@remotion/studio": "4.0.228",
30
+ "@remotion/studio-shared": "4.0.228"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">=16.8.0",
@@ -35,7 +35,9 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "react": "18.3.1",
38
- "react-dom": "18.3.1"
38
+ "react-dom": "18.3.1",
39
+ "eslint": "9.14.0",
40
+ "@remotion/eslint-config-internal": "4.0.228"
39
41
  },
40
42
  "keywords": [
41
43
  "remotion",
@@ -51,7 +53,8 @@
51
53
  "homepage": "https://www.remotion.dev/docs/bundler",
52
54
  "scripts": {
53
55
  "formatting": "prettier src --check",
54
- "lint": "eslint src --ext ts,tsx",
55
- "test": "bun test src"
56
+ "lint": "eslint src",
57
+ "test": "bun test src",
58
+ "make": "tsc -d"
56
59
  }
57
60
  }
package/renderEntry.tsx CHANGED
@@ -16,7 +16,6 @@ import type {
16
16
  import {
17
17
  AbsoluteFill,
18
18
  Internals,
19
- VERSION,
20
19
  continueRender,
21
20
  delayRender,
22
21
  getInputProps,
@@ -196,7 +195,7 @@ const waitForRootHandle = delayRender(
196
195
  timeoutInMilliseconds:
197
196
  typeof window === 'undefined'
198
197
  ? DEFAULT_ROOT_COMPONENT_TIMEOUT
199
- : window.remotion_puppeteerTimeout ?? DEFAULT_ROOT_COMPONENT_TIMEOUT,
198
+ : (window.remotion_puppeteerTimeout ?? DEFAULT_ROOT_COMPONENT_TIMEOUT),
200
199
  },
201
200
  );
202
201
 
@@ -343,7 +342,7 @@ if (typeof window !== 'undefined') {
343
342
  const inputProps =
344
343
  typeof window === 'undefined' || getRemotionEnvironment().isPlayer
345
344
  ? {}
346
- : getInputProps() ?? {};
345
+ : (getInputProps() ?? {});
347
346
 
348
347
  return Promise.all(
349
348
  compositions.map(async (c): Promise<VideoConfigWithSerializedProps> => {
@@ -414,7 +413,7 @@ if (typeof window !== 'undefined') {
414
413
  const inputProps =
415
414
  typeof window === 'undefined' || getRemotionEnvironment().isPlayer
416
415
  ? {}
417
- : getInputProps() ?? {};
416
+ : (getInputProps() ?? {});
418
417
 
419
418
  const originalProps = {
420
419
  ...(selectedComp.defaultProps ?? {}),
@@ -454,7 +453,5 @@ if (typeof window !== 'undefined') {
454
453
  };
455
454
  };
456
455
 
457
- window.siteVersion = '11';
458
- window.remotion_version = VERSION;
459
456
  window.remotion_setBundleMode = setBundleModeAndUpdate;
460
457
  }