@remotion/bundler 4.0.23 → 4.0.25

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.
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
3
3
  */
4
+ /// <reference lib="dom" />
5
+ /// <reference lib="dom.iterable" />
4
6
  /**
5
7
  * The MIT License (MIT)
6
8
  *
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
+ /// <reference lib="dom" />
3
+ /// <reference lib="dom.iterable" />
2
4
  /**
3
5
  * Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
4
6
  */
@@ -193,9 +193,7 @@ if (typeof window !== 'undefined') {
193
193
  window.getStaticCompositions = () => {
194
194
  var _a;
195
195
  const compositions = getUnevaluatedComps();
196
- const inputProps = typeof window === 'undefined' ||
197
- remotion_1.Internals.getRemotionEnvironment() === 'player-development' ||
198
- remotion_1.Internals.getRemotionEnvironment() === 'player-production'
196
+ const inputProps = typeof window === 'undefined' || (0, remotion_1.getRemotionEnvironment)().isPlayer
199
197
  ? {}
200
198
  : (_a = (0, remotion_1.getInputProps)()) !== null && _a !== void 0 ? _a : {};
201
199
  return Promise.all(compositions.map(async (c) => {
@@ -236,9 +234,7 @@ if (typeof window !== 'undefined') {
236
234
  }
237
235
  const abortController = new AbortController();
238
236
  const handle = (0, remotion_1.delayRender)(`Running the calculateMetadata() function for composition ${compId}`);
239
- const inputProps = typeof window === 'undefined' ||
240
- remotion_1.Internals.getRemotionEnvironment() === 'player-development' ||
241
- remotion_1.Internals.getRemotionEnvironment() === 'player-production'
237
+ const inputProps = typeof window === 'undefined' || (0, remotion_1.getRemotionEnvironment)().isPlayer
242
238
  ? {}
243
239
  : (_a = (0, remotion_1.getInputProps)()) !== null && _a !== void 0 ? _a : {};
244
240
  const prom = await Promise.resolve(remotion_1.Internals.resolveVideoConfig({
@@ -54,16 +54,22 @@ function truthy(value) {
54
54
  }
55
55
  const webpackConfig = ({ entry, userDefinedComponent, outDir, environment, webpackOverride = (f) => f, onProgress, enableCaching = true, maxTimelineTracks, entryPoints, remotionRoot, keyboardShortcutsEnabled, poll, }) => {
56
56
  let lastProgress = 0;
57
+ const isBun = typeof Bun !== 'undefined';
58
+ if (isBun) {
59
+ console.warn('Unsupported feature in Bun: lazyComponent is not supported');
60
+ }
57
61
  const conf = webpackOverride({
58
62
  optimization: {
59
63
  minimize: false,
60
64
  },
61
65
  experiments: {
62
- lazyCompilation: environment === 'production'
66
+ lazyCompilation: isBun
63
67
  ? false
64
- : {
65
- entries: false,
66
- },
68
+ : environment === 'production'
69
+ ? false
70
+ : {
71
+ entries: false,
72
+ },
67
73
  },
68
74
  watchOptions: {
69
75
  poll: poll !== null && poll !== void 0 ? poll : undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "4.0.23",
3
+ "version": "4.0.25",
4
4
  "description": "Bundler for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -22,7 +22,7 @@
22
22
  "react-refresh": "0.9.0",
23
23
  "style-loader": "2.0.0",
24
24
  "webpack": "5.83.1",
25
- "remotion": "4.0.23"
25
+ "remotion": "4.0.25"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": ">=16.8.0",
@@ -31,6 +31,7 @@
31
31
  "devDependencies": {
32
32
  "@jonny/eslint-config": "3.0.266",
33
33
  "@types/node": "18.14.6",
34
+ "bun-types": "0.8.0",
34
35
  "@types/react": "18.0.26",
35
36
  "@types/react-dom": "18.0.10",
36
37
  "eslint": "8.42.0",