@remotion/bundler 4.0.523 → 4.0.524
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 +4 -0
- package/dist/optional-dependencies.js +6 -4
- package/dist/rspack-config.js +6 -0
- package/package.json +7 -7
package/dist/bundle.js
CHANGED
|
@@ -251,6 +251,10 @@ const internalBundle = async (actualArgs) => {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
+
const bundleOutput = node_path_1.default.join(outDir, no_react_1.NoReactInternals.bundleName);
|
|
255
|
+
if (!node_fs_1.default.existsSync(bundleOutput)) {
|
|
256
|
+
throw new Error(`The bundler completed without emitting ${no_react_1.NoReactInternals.bundleName}.`);
|
|
257
|
+
}
|
|
254
258
|
const publicPath = (0, exports.getBundlePublicPath)(actualArgs.publicPath);
|
|
255
259
|
const staticHash = (0, exports.getBundleStaticHash)(publicPath);
|
|
256
260
|
const from = (options === null || options === void 0 ? void 0 : options.publicDir)
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// When Webpack cannot resolve these dependencies, it will not print an error message.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.AllowOptionalDependenciesPlugin = void 0;
|
|
5
|
+
const studio_shared_1 = require("@remotion/studio-shared");
|
|
5
6
|
const OPTIONAL_DEPENDENCIES = [
|
|
6
7
|
'zod',
|
|
7
8
|
'@remotion/zod-types',
|
|
@@ -17,23 +18,24 @@ class AllowOptionalDependenciesPlugin {
|
|
|
17
18
|
filter(error) {
|
|
18
19
|
var _a, _b, _c, _d, _e;
|
|
19
20
|
var _f;
|
|
21
|
+
const message = (0, studio_shared_1.stripAnsi)(error.message);
|
|
20
22
|
for (const dependency of OPTIONAL_DEPENDENCIES) {
|
|
21
|
-
if (
|
|
23
|
+
if (message.includes(`Can't resolve '${dependency}'`)) {
|
|
22
24
|
return false;
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
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
28
|
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
29
|
for (const dependency of STUDIO_OPTIONAL_DEPENDENCIES) {
|
|
28
|
-
if (
|
|
30
|
+
if (message.includes(`Can't resolve '${dependency}'`) &&
|
|
29
31
|
(issuerPackageName === '@remotion/studio' ||
|
|
30
32
|
issuer.includes('/@remotion/studio/'))) {
|
|
31
33
|
return false;
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
for (const dependency of SOURCE_MAP_IGNORE) {
|
|
35
|
-
if (
|
|
36
|
-
|
|
37
|
+
if (message.includes(`Can't resolve '${dependency}'`) &&
|
|
38
|
+
message.includes('source-map')) {
|
|
37
39
|
return false;
|
|
38
40
|
}
|
|
39
41
|
}
|
package/dist/rspack-config.js
CHANGED
|
@@ -47,6 +47,12 @@ const rspackConfig = async ({ entry, userDefinedComponent, outDir, environment,
|
|
|
47
47
|
const sharedBaseConfig = (0, shared_bundler_config_1.getBaseConfig)(environment, poll);
|
|
48
48
|
const baseConfig = {
|
|
49
49
|
...sharedBaseConfig,
|
|
50
|
+
optimization: {
|
|
51
|
+
...sharedBaseConfig.optimization,
|
|
52
|
+
// The optional dependency plugin removes expected resolution errors after
|
|
53
|
+
// compilation. Rspack must emit their throwing fallback chunks first.
|
|
54
|
+
emitOnErrors: true,
|
|
55
|
+
},
|
|
50
56
|
experiments: {
|
|
51
57
|
...sharedBaseConfig.experiments,
|
|
52
58
|
...(environment === 'development'
|
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.524",
|
|
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.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",
|
|
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.524",
|
|
43
43
|
"eslint": "9.19.0",
|
|
44
44
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
45
45
|
},
|