@remotion/bundler 4.0.461 → 4.0.462

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.d.ts CHANGED
@@ -13,6 +13,13 @@ export type MandatoryLegacyBundleOptions = {
13
13
  keyboardShortcutsEnabled: boolean;
14
14
  askAIEnabled: boolean;
15
15
  rspack: boolean;
16
+ /**
17
+ * If true, the public directory is symlinked into the bundle output instead of copied.
18
+ * Safe for throwaway bundles (e.g. CLI render where the output folder is deleted after);
19
+ * do not use when the bundle must be self-contained for deployment.
20
+ * Has no effect on Windows, where the public directory is always copied.
21
+ */
22
+ symlinkPublicDir: boolean;
16
23
  };
17
24
  export type LegacyBundleOptions = Partial<MandatoryLegacyBundleOptions>;
18
25
  export declare const getConfig: ({ entryPoint, outDir, resolvedRemotionRoot, onProgress, options, bufferStateDelayInMilliseconds, maxTimelineTracks, experimentalClientSideRenderingEnabled, }: {
package/dist/bundle.js CHANGED
@@ -263,17 +263,22 @@ const internalBundle = async (actualArgs) => {
263
263
  console.warn(`\nFound a symbolic link in the public folder (${absolutePath}). The symlink will be forwarded into the bundle.`);
264
264
  };
265
265
  if (node_fs_1.default.existsSync(from)) {
266
- await (0, copy_dir_1.copyDir)({
267
- src: from,
268
- dest: to,
269
- onSymlinkDetected: showSymlinkWarning,
270
- onProgress: (prog) => {
271
- var _a;
272
- return (_a = options.onPublicDirCopyProgress) === null || _a === void 0 ? void 0 : _a.call(options, prog);
273
- },
274
- copiedBytes: 0,
275
- lastReportedProgress: 0,
276
- });
266
+ if (actualArgs.symlinkPublicDir && process.platform !== 'win32') {
267
+ await node_fs_1.default.promises.symlink(from, to);
268
+ }
269
+ else {
270
+ await (0, copy_dir_1.copyDir)({
271
+ src: from,
272
+ dest: to,
273
+ onSymlinkDetected: showSymlinkWarning,
274
+ onProgress: (prog) => {
275
+ var _a;
276
+ return (_a = options.onPublicDirCopyProgress) === null || _a === void 0 ? void 0 : _a.call(options, prog);
277
+ },
278
+ copiedBytes: 0,
279
+ lastReportedProgress: 0,
280
+ });
281
+ }
277
282
  }
278
283
  const html = (0, index_html_1.indexHtml)({
279
284
  staticHash,
@@ -322,7 +327,7 @@ exports.internalBundle = internalBundle;
322
327
  * @see [Documentation](https://remotion.dev/docs/bundle)
323
328
  */
324
329
  async function bundle(...args) {
325
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
330
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
326
331
  const actualArgs = convertArgumentsIntoOptions(args);
327
332
  const result = await (0, exports.internalBundle)({
328
333
  bufferStateDelayInMilliseconds: (_a = actualArgs.bufferStateDelayInMilliseconds) !== null && _a !== void 0 ? _a : null,
@@ -346,6 +351,7 @@ async function bundle(...args) {
346
351
  askAIEnabled: (_t = actualArgs.askAIEnabled) !== null && _t !== void 0 ? _t : true,
347
352
  keyboardShortcutsEnabled: (_u = actualArgs.keyboardShortcutsEnabled) !== null && _u !== void 0 ? _u : true,
348
353
  rspack: (_v = actualArgs.rspack) !== null && _v !== void 0 ? _v : false,
354
+ symlinkPublicDir: (_w = actualArgs.symlinkPublicDir) !== null && _w !== void 0 ? _w : false,
349
355
  });
350
356
  return result;
351
357
  }
package/package.json CHANGED
@@ -3,10 +3,9 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/bundler"
4
4
  },
5
5
  "name": "@remotion/bundler",
6
- "version": "4.0.461",
6
+ "version": "4.0.462",
7
7
  "description": "Bundle Remotion compositions using Webpack",
8
8
  "main": "dist/index.js",
9
- "sideEffects": false,
10
9
  "bugs": {
11
10
  "url": "https://github.com/remotion-dev/remotion/issues"
12
11
  },
@@ -25,13 +24,13 @@
25
24
  "loader-utils": "2.0.4",
26
25
  "postcss": "8.5.10",
27
26
  "postcss-value-parser": "4.2.0",
28
- "esbuild": "0.25.0",
27
+ "esbuild": "0.28.0",
29
28
  "react-refresh": "0.18.0",
30
- "remotion": "4.0.461",
31
- "@remotion/studio": "4.0.461",
32
- "@remotion/studio-shared": "4.0.461",
33
- "@remotion/timeline-utils": "4.0.461",
34
- "@remotion/media-parser": "4.0.461",
29
+ "remotion": "4.0.462",
30
+ "@remotion/studio": "4.0.462",
31
+ "@remotion/studio-shared": "4.0.462",
32
+ "@remotion/timeline-utils": "4.0.462",
33
+ "@remotion/media-parser": "4.0.462",
35
34
  "style-loader": "4.0.0",
36
35
  "webpack": "5.105.0"
37
36
  },
@@ -42,7 +41,7 @@
42
41
  "devDependencies": {
43
42
  "react": "19.2.3",
44
43
  "react-dom": "19.2.3",
45
- "@remotion/eslint-config-internal": "4.0.461",
44
+ "@remotion/eslint-config-internal": "4.0.462",
46
45
  "eslint": "9.19.0",
47
46
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
48
47
  },