@remotion/bundler 4.0.514 → 4.0.516
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/fast-refresh/zero-delay-rspack-refresh-loader.d.ts +3 -0
- package/dist/fast-refresh/zero-delay-rspack-refresh-loader.js +15 -0
- package/dist/index.d.ts +1 -1
- package/dist/react-scan-entry-point.d.ts +1 -0
- package/dist/react-scan-entry-point.js +22 -0
- package/dist/rspack-config.js +13 -0
- package/dist/webpack-config.js +2 -0
- package/package.json +7 -7
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const rspackReactRefreshDelay = ' }, 30);';
|
|
4
|
+
const zeroDelayReactRefresh = ' }, 0);';
|
|
5
|
+
const removeRspackReactRefreshDelay = (source) => {
|
|
6
|
+
const occurrences = source.split(rspackReactRefreshDelay).length - 1;
|
|
7
|
+
if (occurrences !== 1) {
|
|
8
|
+
throw new Error(`Expected one 30ms React Refresh debounce in @rspack/plugin-react-refresh, found ${occurrences}.`);
|
|
9
|
+
}
|
|
10
|
+
return source.replace(rspackReactRefreshDelay, zeroDelayReactRefresh);
|
|
11
|
+
};
|
|
12
|
+
const ZeroDelayRspackRefreshLoader = function (source) {
|
|
13
|
+
return removeRspackReactRefreshDelay(source);
|
|
14
|
+
};
|
|
15
|
+
exports.default = ZeroDelayRspackRefreshLoader;
|
package/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare const BundlerInternals: {
|
|
|
30
30
|
extraPlugins: any[];
|
|
31
31
|
}) => Promise<[string, import("@rspack/core").RspackOptions]>;
|
|
32
32
|
createRspackCompiler: (config: import("@rspack/core").RspackOptions) => import("@rspack/core").Compiler;
|
|
33
|
-
indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, fileSystemPlatform, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, experimentalKeepAudioContextAlive, sampleRate, logLevel, mode, bundleScriptUrl, readOnlyStudio, studioRuntimeConfig, }: import("@remotion/studio-shared").StudioHtmlOptions) => string;
|
|
33
|
+
indexHtml: ({ publicPath, editorName, inputProps, envVariables, staticHash, remotionRoot, studioServerCommand, renderQueue, completedClientRenders, numberOfAudioTags, publicFiles, includeFavicon, title, renderDefaults, publicFolderExists, fileSystemPlatform, gitSource, projectName, installedDependencies, packageManager, audioLatencyHint, experimentalKeepAudioContextAlive, sampleRate, logLevel, mode, bundleScriptUrl, bundleScriptType, readOnlyStudio, studioRuntimeConfig, }: import("@remotion/studio-shared").StudioHtmlOptions) => string;
|
|
34
34
|
cacheExists: (remotionRoot: string, environment: "development" | "production", hash: string) => "does-not-exist" | "exists" | "other-exists";
|
|
35
35
|
clearCache: (remotionRoot: string, env: "development" | "production") => Promise<void>;
|
|
36
36
|
getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, }: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getReactScanEntryPoint: (environment: "development" | "production") => string | null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getReactScanEntryPoint = void 0;
|
|
4
|
+
const endpointEnvName = 'REMOTION_REACT_SCAN_ENDPOINT';
|
|
5
|
+
const entryPointEnvName = 'REMOTION_REACT_SCAN_ENTRY_POINT';
|
|
6
|
+
const sessionIdEnvName = 'REMOTION_REACT_SCAN_SESSION_ID';
|
|
7
|
+
const getReactScanEntryPoint = (environment) => {
|
|
8
|
+
if (environment === 'production') {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
const endpoint = process.env[endpointEnvName];
|
|
12
|
+
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;
|
|
21
|
+
};
|
|
22
|
+
exports.getReactScanEntryPoint = getReactScanEntryPoint;
|
package/dist/rspack-config.js
CHANGED
|
@@ -7,6 +7,7 @@ exports.createRspackCompiler = exports.rspackConfig = void 0;
|
|
|
7
7
|
const studio_entry_points_1 = require("@remotion/studio-shared/studio-entry-points");
|
|
8
8
|
const core_1 = require("@rspack/core");
|
|
9
9
|
const plugin_react_refresh_1 = __importDefault(require("@rspack/plugin-react-refresh"));
|
|
10
|
+
const react_scan_entry_point_1 = require("./react-scan-entry-point");
|
|
10
11
|
const shared_bundler_config_1 = require("./shared-bundler-config");
|
|
11
12
|
const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment, bundlerOverride = (f) => f, rspackOverride = (f) => f, onProgress, enableCaching = true, remotionRoot, poll, extraPlugins, }) => {
|
|
12
13
|
let lastProgress = 0;
|
|
@@ -53,6 +54,7 @@ const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment,
|
|
|
53
54
|
fastRefreshRuntime: environment === 'development'
|
|
54
55
|
? require.resolve('./fast-refresh/notify-on-refresh.js')
|
|
55
56
|
: null,
|
|
57
|
+
reactScan: (0, react_scan_entry_point_1.getReactScanEntryPoint)(environment),
|
|
56
58
|
environmentSetup: require.resolve('./setup-environment'),
|
|
57
59
|
sequenceStackTraces: environment === 'development'
|
|
58
60
|
? require.resolve('./setup-sequence-stack-traces')
|
|
@@ -83,6 +85,17 @@ const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment,
|
|
|
83
85
|
module: {
|
|
84
86
|
rules: [
|
|
85
87
|
...(0, shared_bundler_config_1.getSharedModuleRules)(),
|
|
88
|
+
...(environment === 'development'
|
|
89
|
+
? [
|
|
90
|
+
{
|
|
91
|
+
test: /[\\/]@rspack[\\/]plugin-react-refresh[\\/]client[\\/]refreshUtils\.js$/,
|
|
92
|
+
enforce: 'pre',
|
|
93
|
+
use: [
|
|
94
|
+
require.resolve('./fast-refresh/zero-delay-rspack-refresh-loader.js'),
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
]
|
|
98
|
+
: []),
|
|
86
99
|
{
|
|
87
100
|
// Emscripten's main.js spawns Workers of itself via
|
|
88
101
|
// new Worker(new URL('./main.js', import.meta.url)).
|
package/dist/webpack-config.js
CHANGED
|
@@ -41,6 +41,7 @@ const fast_refresh_1 = require("./fast-refresh");
|
|
|
41
41
|
const hide_expression_dependency_1 = require("./hide-expression-dependency");
|
|
42
42
|
const ignore_packfilecache_warnings_1 = require("./ignore-packfilecache-warnings");
|
|
43
43
|
const optional_dependencies_1 = require("./optional-dependencies");
|
|
44
|
+
const react_scan_entry_point_1 = require("./react-scan-entry-point");
|
|
44
45
|
const shared_bundler_config_1 = require("./shared-bundler-config");
|
|
45
46
|
const esbuild = require("esbuild");
|
|
46
47
|
function truthy(value) {
|
|
@@ -60,6 +61,7 @@ const webpackConfig = async ({ entry, userDefinedComponent, outDir, environment,
|
|
|
60
61
|
fastRefreshRuntime: environment === 'development'
|
|
61
62
|
? require.resolve('./fast-refresh/runtime.js')
|
|
62
63
|
: null,
|
|
64
|
+
reactScan: (0, react_scan_entry_point_1.getReactScanEntryPoint)(environment),
|
|
63
65
|
environmentSetup: require.resolve('./setup-environment'),
|
|
64
66
|
sequenceStackTraces: environment === 'development'
|
|
65
67
|
? 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.
|
|
6
|
+
"version": "4.0.516",
|
|
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.
|
|
28
|
-
"@remotion/studio": "4.0.
|
|
29
|
-
"@remotion/studio-shared": "4.0.
|
|
30
|
-
"@remotion/timeline-utils": "4.0.
|
|
31
|
-
"@remotion/media-parser": "4.0.
|
|
27
|
+
"remotion": "4.0.516",
|
|
28
|
+
"@remotion/studio": "4.0.516",
|
|
29
|
+
"@remotion/studio-shared": "4.0.516",
|
|
30
|
+
"@remotion/timeline-utils": "4.0.516",
|
|
31
|
+
"@remotion/media-parser": "4.0.516",
|
|
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.
|
|
42
|
+
"@remotion/eslint-config-internal": "4.0.516",
|
|
43
43
|
"eslint": "9.19.0",
|
|
44
44
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
45
45
|
},
|