@remotion/skia 4.0.271 → 4.0.273

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.
@@ -11,11 +11,18 @@ const fs_1 = __importDefault(require("fs"));
11
11
  * @see [Documentation](https://www.remotion.dev/docs/skia/enable-skia)
12
12
  */
13
13
  const enableSkia = (currentConfiguration) => {
14
- var _a, _b;
14
+ var _a, _b, _c, _d;
15
+ const newExtensions = [
16
+ ...((_b = (_a = currentConfiguration.resolve) === null || _a === void 0 ? void 0 : _a.extensions) !== null && _b !== void 0 ? _b : []),
17
+ '.web.js',
18
+ '.web.ts',
19
+ '.web.tsx',
20
+ ];
21
+ const deduplicatedExtensions = [...new Set(newExtensions)];
15
22
  return {
16
23
  ...currentConfiguration,
17
24
  plugins: [
18
- ...((_a = currentConfiguration.plugins) !== null && _a !== void 0 ? _a : []),
25
+ ...((_c = currentConfiguration.plugins) !== null && _c !== void 0 ? _c : []),
19
26
  new (class CopySkiaPlugin {
20
27
  apply(compiler) {
21
28
  compiler.hooks.thisCompilation.tap('AddSkiaPlugin', (compilation) => {
@@ -41,17 +48,9 @@ const enableSkia = (currentConfiguration) => {
41
48
  fs: false,
42
49
  path: false,
43
50
  },
44
- extensions: [
45
- '.web.js',
46
- '.web.ts',
47
- '.web.tsx',
48
- '.js',
49
- '.ts',
50
- '.tsx',
51
- '...',
52
- ],
51
+ extensions: deduplicatedExtensions,
53
52
  alias: {
54
- ...(_b = currentConfiguration.resolve) === null || _b === void 0 ? void 0 : _b.alias,
53
+ ...(_d = currentConfiguration.resolve) === null || _d === void 0 ? void 0 : _d.alias,
55
54
  'react-native-reanimated': "require('react-native-reanimated')",
56
55
  'react-native-reanimated/lib/reanimated2/core': "require('react-native-reanimated/lib/reanimated2/core')",
57
56
  'react-native/Libraries/Image/AssetRegistry': false,
@@ -5,6 +5,13 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
5
5
  import { webpack } from "@remotion/bundler";
6
6
  import fs from "fs";
7
7
  var enableSkia = (currentConfiguration) => {
8
+ const newExtensions = [
9
+ ...currentConfiguration.resolve?.extensions ?? [],
10
+ ".web.js",
11
+ ".web.ts",
12
+ ".web.tsx"
13
+ ];
14
+ const deduplicatedExtensions = [...new Set(newExtensions)];
8
15
  return {
9
16
  ...currentConfiguration,
10
17
  plugins: [
@@ -32,15 +39,7 @@ var enableSkia = (currentConfiguration) => {
32
39
  fs: false,
33
40
  path: false
34
41
  },
35
- extensions: [
36
- ".web.js",
37
- ".web.ts",
38
- ".web.tsx",
39
- ".js",
40
- ".ts",
41
- ".tsx",
42
- "..."
43
- ],
42
+ extensions: deduplicatedExtensions,
44
43
  alias: {
45
44
  ...currentConfiguration.resolve?.alias,
46
45
  "react-native-reanimated": "require('react-native-reanimated')",
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/skia"
4
4
  },
5
5
  "name": "@remotion/skia",
6
- "version": "4.0.271",
6
+ "version": "4.0.273",
7
7
  "description": "Include React Native Skia components in a Remotion video",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "url": "https://github.com/remotion-dev/remotion/issues"
17
17
  },
18
18
  "dependencies": {
19
- "remotion": "4.0.271"
19
+ "remotion": "4.0.273"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@shopify/react-native-skia": ">=0.1.191",
@@ -32,9 +32,9 @@
32
32
  "@types/react": "18.3.1",
33
33
  "@types/react-dom": "18.3.1",
34
34
  "eslint": "9.19.0",
35
- "remotion": "4.0.271",
36
- "@remotion/bundler": "4.0.271",
37
- "@remotion/eslint-config-internal": "4.0.271"
35
+ "remotion": "4.0.273",
36
+ "@remotion/bundler": "4.0.273",
37
+ "@remotion/eslint-config-internal": "4.0.273"
38
38
  },
39
39
  "keywords": [
40
40
  "remotion",