@remotion/lottie 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.
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'],
@@ -13,9 +26,7 @@ const output = await build({
13
26
  });
14
27
 
15
28
  const [file] = output.outputs;
16
- const text = (await file.text())
17
- .replace(/jsxDEV/g, 'jsx')
18
- .replace(/react\/jsx-dev-runtime/g, 'react/jsx-runtime');
29
+ const text = await file.text();
19
30
 
20
31
  await Bun.write('dist/esm/index.mjs', text);
21
32
 
@@ -155,7 +155,7 @@ var Lottie = ({
155
155
  ref: containerRef,
156
156
  className,
157
157
  style
158
- }, undefined, false, undefined, this);
158
+ });
159
159
  };
160
160
 
161
161
  // src/get-lottie-metadata.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/lottie",
3
- "version": "4.0.149",
3
+ "version": "4.0.151",
4
4
  "description": "Remotion Lottie",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "license": "SEE LICENSE IN LICENSE.md",
21
21
  "dependencies": {
22
- "remotion": "4.0.149"
22
+ "remotion": "4.0.151"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "lottie-web": "^5",
@@ -61,6 +61,6 @@
61
61
  "formatting": "prettier src --check",
62
62
  "lint": "eslint src --ext ts,tsx",
63
63
  "test": "bun test src",
64
- "build": "bun bundle.ts"
64
+ "build": "bun --env-file=../.env.bundle bundle.ts"
65
65
  }
66
66
  }