@remotion/bundler 4.0.524 → 4.0.525

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.
@@ -1,22 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getReactScanEntryPoint = void 0;
4
- const endpointEnvName = 'REMOTION_REACT_SCAN_ENDPOINT';
5
4
  const entryPointEnvName = 'REMOTION_REACT_SCAN_ENTRY_POINT';
6
- const sessionIdEnvName = 'REMOTION_REACT_SCAN_SESSION_ID';
7
5
  const getReactScanEntryPoint = (environment) => {
8
6
  if (environment === 'production') {
9
7
  return null;
10
8
  }
11
- const endpoint = process.env[endpointEnvName];
12
9
  const entryPoint = process.env[entryPointEnvName];
13
- const sessionId = process.env[sessionIdEnvName];
14
- if (!endpoint && !entryPoint && !sessionId) {
15
- return null;
16
- }
17
- if (!endpoint || !entryPoint || !sessionId) {
18
- throw new Error(`${endpointEnvName}, ${entryPointEnvName}, and ${sessionIdEnvName} must be set together`);
19
- }
20
- return entryPoint;
10
+ return entryPoint !== null && entryPoint !== void 0 ? entryPoint : null;
21
11
  };
22
12
  exports.getReactScanEntryPoint = getReactScanEntryPoint;
@@ -12,6 +12,7 @@ export declare class WatchIgnoreNextChangePlugin {
12
12
  ignoreNextChange(file: string): void;
13
13
  unignoreNextChange(file: string): void;
14
14
  consumeSuppressedFilesHistory(): string[];
15
+ consumeSuppressedFilesForRebuild(): string[];
15
16
  apply(compiler: Compiler): void;
16
17
  }
17
18
  export {};
@@ -67,6 +67,17 @@ class WatchIgnoreNextChangePlugin {
67
67
  this.suppressedFilesHistory.clear();
68
68
  return files;
69
69
  }
70
+ consumeSuppressedFilesForRebuild() {
71
+ // Include writes whose watcher event has not arrived yet.
72
+ const files = [
73
+ ...new Set([...this.suppressedFilesHistory, ...this.filesToIgnore]),
74
+ ];
75
+ this.suppressedFilesHistory.clear();
76
+ for (const file of files) {
77
+ this.unignoreNextChange(file);
78
+ }
79
+ return files;
80
+ }
70
81
  apply(compiler) {
71
82
  compiler.hooks.afterEnvironment.tap('WatchIgnoreNextChangePlugin', () => {
72
83
  const wfs = compiler.watchFileSystem;
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.524",
6
+ "version": "4.0.525",
7
7
  "description": "Bundle Remotion compositions using Webpack",
8
8
  "main": "dist/index.js",
9
9
  "bugs": {
@@ -24,11 +24,11 @@
24
24
  "css-loader": "7.1.4",
25
25
  "esbuild": "0.28.1",
26
26
  "react-refresh": "0.18.0",
27
- "remotion": "4.0.524",
28
- "@remotion/studio": "4.0.524",
29
- "@remotion/studio-shared": "4.0.524",
30
- "@remotion/timeline-utils": "4.0.524",
31
- "@remotion/media-parser": "4.0.524",
27
+ "remotion": "4.0.525",
28
+ "@remotion/studio": "4.0.525",
29
+ "@remotion/studio-shared": "4.0.525",
30
+ "@remotion/timeline-utils": "4.0.525",
31
+ "@remotion/media-parser": "4.0.525",
32
32
  "style-loader": "4.0.0",
33
33
  "webpack": "5.105.0"
34
34
  },
@@ -39,7 +39,7 @@
39
39
  "devDependencies": {
40
40
  "react": "19.2.3",
41
41
  "react-dom": "19.2.3",
42
- "@remotion/eslint-config-internal": "4.0.524",
42
+ "@remotion/eslint-config-internal": "4.0.525",
43
43
  "eslint": "9.19.0",
44
44
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
45
45
  },