@remotion/gif 4.0.149 → 4.0.151

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,4 +1,6 @@
1
1
 
2
- > @remotion/gif@4.0.148 build /Users/jonathanburger/remotion/packages/gif
3
- > node build.mjs && bun bundle.ts
2
+ > @remotion/gif@4.0.150 build /Users/jonathanburger/remotion/packages/gif
3
+ > node build.mjs && bun --env-file=../.env.bundle bundle.ts
4
4
 
5
+ warn: Remotion currently uses a fork of Bun to bundle.
6
+ You dont currently run the fork, this could lead to duplicate key warnings in React.
package/bundle.ts CHANGED
@@ -1,4 +1,17 @@
1
- import {build} from 'bun';
1
+ import {build, revision} from 'bun';
2
+
3
+ if (process.env.NODE_ENV !== 'production') {
4
+ throw new Error('This script must be run using NODE_ENV=production');
5
+ }
6
+
7
+ if (!revision.startsWith('07ce')) {
8
+ // eslint-disable-next-line no-console
9
+ console.warn('warn: Remotion currently uses a fork of Bun to bundle.');
10
+ // eslint-disable-next-line no-console
11
+ console.log(
12
+ 'You dont currently run the fork, this could lead to duplicate key warnings in React.',
13
+ );
14
+ }
2
15
 
3
16
  const output = await build({
4
17
  entrypoints: ['src/index.ts'],
@@ -8,10 +21,7 @@ const output = await build({
8
21
  });
9
22
 
10
23
  const [file] = output.outputs;
11
- const text = (await file.text())
12
- .replace(/jsxDEV/g, 'jsx')
13
- .replace(/react\/jsx-dev-runtime/g, 'react/jsx-runtime');
14
-
24
+ const text = await file.text();
15
25
  await Bun.write('dist/esm/index.mjs', text);
16
26
 
17
27
  export {};
@@ -174,7 +174,7 @@ var Canvas = forwardRef(({ index, frames, width, height, fit, className, style }
174
174
  style,
175
175
  width: width ?? size?.width,
176
176
  height: height ?? size?.height
177
- }, undefined, false, undefined, this);
177
+ });
178
178
  });
179
179
 
180
180
  // src/lru/index.ts
@@ -1099,7 +1099,7 @@ var GifForDevelopment = forwardRef2(({
1099
1099
  height,
1100
1100
  ...props,
1101
1101
  ref
1102
- }, undefined, false, undefined, this);
1102
+ });
1103
1103
  });
1104
1104
 
1105
1105
  // src/GifForRendering.tsx
@@ -1197,7 +1197,7 @@ var GifForRendering = forwardRef3(({
1197
1197
  height,
1198
1198
  ...props,
1199
1199
  ref
1200
- }, undefined, false, undefined, this);
1200
+ });
1201
1201
  });
1202
1202
 
1203
1203
  // src/Gif.tsx
@@ -1210,12 +1210,12 @@ var Gif = forwardRef4((props, ref) => {
1210
1210
  return jsx4(GifForRendering, {
1211
1211
  ...props,
1212
1212
  ref
1213
- }, undefined, false, undefined, this);
1213
+ });
1214
1214
  }
1215
1215
  return jsx4(GifForDevelopment, {
1216
1216
  ...props,
1217
1217
  ref
1218
- }, undefined, false, undefined, this);
1218
+ });
1219
1219
  });
1220
1220
 
1221
1221
  // src/get-gif-duration-in-seconds.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/gif",
3
- "version": "4.0.149",
3
+ "version": "4.0.151",
4
4
  "description": "Gif component for remotion",
5
5
  "sideEffects": false,
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "remotion": "4.0.149"
27
+ "remotion": "4.0.151"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@jonny/eslint-config": "3.0.281",
@@ -56,6 +56,6 @@
56
56
  "scripts": {
57
57
  "formatting": "prettier src --check",
58
58
  "lint": "eslint src --ext ts,tsx",
59
- "build": "node build.mjs && bun bundle.ts"
59
+ "build": "node build.mjs && bun --env-file=../.env.bundle bundle.ts"
60
60
  }
61
61
  }