@remotion/bundler 4.0.522 → 4.0.523
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 +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/optional-dependencies.d.ts +10 -1
- package/dist/optional-dependencies.js +15 -0
- package/dist/rspack-config.js +3 -0
- package/dist/setup-environment.js +5 -0
- package/dist/shared-bundler-config.d.ts +0 -1
- package/dist/shared-bundler-config.js +15 -2
- package/package.json +7 -7
package/dist/bundle.js
CHANGED
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, bundleScriptType, 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, importMap, 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, }: {
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import type { Compiler } from 'webpack';
|
|
2
2
|
export declare class AllowOptionalDependenciesPlugin {
|
|
3
|
-
filter(error: Error
|
|
3
|
+
filter(error: Error & {
|
|
4
|
+
module?: {
|
|
5
|
+
resource?: string;
|
|
6
|
+
resourceResolveData?: {
|
|
7
|
+
descriptionFileData?: {
|
|
8
|
+
name?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
}): boolean;
|
|
4
13
|
apply(compiler: Compiler): void;
|
|
5
14
|
}
|
|
@@ -8,14 +8,29 @@ const OPTIONAL_DEPENDENCIES = [
|
|
|
8
8
|
'react-native-reanimated',
|
|
9
9
|
'react-native-reanimated/package.json',
|
|
10
10
|
];
|
|
11
|
+
const STUDIO_OPTIONAL_DEPENDENCIES = [
|
|
12
|
+
'@remotion/whisper-webgpu',
|
|
13
|
+
'@remotion/video-matting',
|
|
14
|
+
];
|
|
11
15
|
const SOURCE_MAP_IGNORE = ['path', 'fs'];
|
|
12
16
|
class AllowOptionalDependenciesPlugin {
|
|
13
17
|
filter(error) {
|
|
18
|
+
var _a, _b, _c, _d, _e;
|
|
19
|
+
var _f;
|
|
14
20
|
for (const dependency of OPTIONAL_DEPENDENCIES) {
|
|
15
21
|
if (error.message.includes(`Can't resolve '${dependency}'`)) {
|
|
16
22
|
return false;
|
|
17
23
|
}
|
|
18
24
|
}
|
|
25
|
+
const issuer = (_f = (_b = (_a = error.module) === null || _a === void 0 ? void 0 : _a.resource) === null || _b === void 0 ? void 0 : _b.replaceAll('\\', '/')) !== null && _f !== void 0 ? _f : '';
|
|
26
|
+
const issuerPackageName = (_e = (_d = (_c = error.module) === null || _c === void 0 ? void 0 : _c.resourceResolveData) === null || _d === void 0 ? void 0 : _d.descriptionFileData) === null || _e === void 0 ? void 0 : _e.name;
|
|
27
|
+
for (const dependency of STUDIO_OPTIONAL_DEPENDENCIES) {
|
|
28
|
+
if (error.message.includes(`Can't resolve '${dependency}'`) &&
|
|
29
|
+
(issuerPackageName === '@remotion/studio' ||
|
|
30
|
+
issuer.includes('/@remotion/studio/'))) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
19
34
|
for (const dependency of SOURCE_MAP_IGNORE) {
|
|
20
35
|
if (error.message.includes(`Can't resolve '${dependency}'`) &&
|
|
21
36
|
error.message.includes('source-map')) {
|
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 optional_dependencies_1 = require("./optional-dependencies");
|
|
10
11
|
const react_scan_entry_point_1 = require("./react-scan-entry-point");
|
|
11
12
|
const shared_bundler_config_1 = require("./shared-bundler-config");
|
|
12
13
|
const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment, bundlerOverride = (f) => f, rspackOverride = (f) => f, onProgress, enableCaching = true, remotionRoot, poll, extraPlugins, }) => {
|
|
@@ -81,6 +82,7 @@ const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment,
|
|
|
81
82
|
? [
|
|
82
83
|
new plugin_react_refresh_1.default({ overlay: false }),
|
|
83
84
|
new core_1.rspack.HotModuleReplacementPlugin(),
|
|
85
|
+
new optional_dependencies_1.AllowOptionalDependenciesPlugin(),
|
|
84
86
|
...extraPlugins,
|
|
85
87
|
]
|
|
86
88
|
: [
|
|
@@ -92,6 +94,7 @@ const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment,
|
|
|
92
94
|
}
|
|
93
95
|
}
|
|
94
96
|
}),
|
|
97
|
+
new optional_dependencies_1.AllowOptionalDependenciesPlugin(),
|
|
95
98
|
],
|
|
96
99
|
output: (0, shared_bundler_config_1.getOutputConfig)(environment),
|
|
97
100
|
resolve: (0, shared_bundler_config_1.getResolveConfig)(),
|
|
@@ -73,6 +73,11 @@ exports.injectCSS = injectCSS;
|
|
|
73
73
|
color: #0584f2
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
.__remotion-vertical-scrollbar::-webkit-scrollbar-corner,
|
|
77
|
+
.__remotion-horizontal-scrollbar::-webkit-scrollbar-corner {
|
|
78
|
+
background: transparent;
|
|
79
|
+
}
|
|
80
|
+
|
|
76
81
|
.__remotion-vertical-scrollbar {
|
|
77
82
|
scrollbar-gutter: stable;
|
|
78
83
|
}
|
|
@@ -36,8 +36,21 @@ const getResolveConfig = () => ({
|
|
|
36
36
|
: {
|
|
37
37
|
'@remotion/media-parser/worker': node_path_1.default.resolve(require.resolve('@remotion/media-parser'), '..', 'esm', 'worker.mjs'),
|
|
38
38
|
}),
|
|
39
|
-
//
|
|
40
|
-
|
|
39
|
+
// Studio entry points are also passed to the bundler as resolved CJS paths.
|
|
40
|
+
// Route both those paths and package imports through the same ESM build.
|
|
41
|
+
...Object.fromEntries([
|
|
42
|
+
'@remotion/studio',
|
|
43
|
+
'@remotion/studio/internals',
|
|
44
|
+
'@remotion/studio/previewEntry',
|
|
45
|
+
'@remotion/studio/renderEntry',
|
|
46
|
+
].flatMap((specifier) => {
|
|
47
|
+
const commonJsPath = require.resolve(specifier);
|
|
48
|
+
const esmPath = node_path_1.default.join(node_path_1.default.dirname(commonJsPath), 'esm', node_path_1.default.basename(commonJsPath, '.js') + '.mjs');
|
|
49
|
+
return [
|
|
50
|
+
[`${specifier}$`, esmPath],
|
|
51
|
+
[commonJsPath, esmPath],
|
|
52
|
+
];
|
|
53
|
+
})),
|
|
41
54
|
[node_path_1.default.join(require.resolve('@remotion/timeline-utils'), '..', 'audio-waveform-worker.mjs')]: node_path_1.default.join(require.resolve('@remotion/timeline-utils'), '..', 'esm', 'audio-waveform-worker.mjs'),
|
|
42
55
|
'react-dom/client': exports.shouldUseReactDomClient
|
|
43
56
|
? require.resolve('react-dom/client')
|
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.523",
|
|
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.523",
|
|
28
|
+
"@remotion/studio": "4.0.523",
|
|
29
|
+
"@remotion/studio-shared": "4.0.523",
|
|
30
|
+
"@remotion/timeline-utils": "4.0.523",
|
|
31
|
+
"@remotion/media-parser": "4.0.523",
|
|
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.523",
|
|
43
43
|
"eslint": "9.19.0",
|
|
44
44
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
45
45
|
},
|