@remotion/bundler 4.0.507 → 4.0.508

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const studio_shared_1 = require("@remotion/studio-shared");
5
+ const RefreshRuntime = require('react-refresh/runtime');
6
+ (_a = RefreshRuntime.__remotionReactRefreshWrapped) !== null && _a !== void 0 ? _a : (RefreshRuntime.__remotionReactRefreshWrapped = null);
7
+ if (RefreshRuntime.__remotionReactRefreshWrapped === null) {
8
+ const originalPerformReactRefresh = RefreshRuntime.performReactRefresh;
9
+ RefreshRuntime.__remotionReactRefreshWrapped = true;
10
+ RefreshRuntime.performReactRefresh = () => {
11
+ // The refresh integration calls this after applying the update. Emitting
12
+ // here gives Studio a boundary after React refreshed its roots.
13
+ const result = originalPerformReactRefresh();
14
+ if (result !== null) {
15
+ window.dispatchEvent(new Event(studio_shared_1.REACT_REFRESH_FINISHED_EVENT));
16
+ }
17
+ return result;
18
+ };
19
+ }
@@ -33,3 +33,4 @@ declare global {
33
33
  }
34
34
  }
35
35
  import RefreshHelpers from './helpers';
36
+ import './notify-on-refresh';
@@ -10,6 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
11
  const RefreshRuntime = require('react-refresh/runtime');
12
12
  const helpers_1 = __importDefault(require("./helpers"));
13
+ require("./notify-on-refresh");
13
14
  // Hook into ReactDOM initialization
14
15
  RefreshRuntime.injectIntoGlobalHook(self);
15
16
  // noop fns to prevent runtime errors during initialization
@@ -50,7 +50,9 @@ const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment,
50
50
  __filename: 'mock',
51
51
  },
52
52
  entry: (0, studio_entry_points_1.getStudioEntryPoints)({
53
- fastRefreshRuntime: null,
53
+ fastRefreshRuntime: environment === 'development'
54
+ ? require.resolve('./fast-refresh/notify-on-refresh.js')
55
+ : null,
54
56
  environmentSetup: require.resolve('./setup-environment'),
55
57
  sequenceStackTraces: environment === 'development'
56
58
  ? require.resolve('./setup-sequence-stack-traces')
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.507",
6
+ "version": "4.0.508",
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.507",
28
- "@remotion/studio": "4.0.507",
29
- "@remotion/studio-shared": "4.0.507",
30
- "@remotion/timeline-utils": "4.0.507",
31
- "@remotion/media-parser": "4.0.507",
27
+ "remotion": "4.0.508",
28
+ "@remotion/studio": "4.0.508",
29
+ "@remotion/studio-shared": "4.0.508",
30
+ "@remotion/timeline-utils": "4.0.508",
31
+ "@remotion/media-parser": "4.0.508",
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.507",
42
+ "@remotion/eslint-config-internal": "4.0.508",
43
43
  "eslint": "9.19.0",
44
44
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
45
45
  },