Skip to content

Commit 66e178d

Browse files
committed
feat: improve terser compress config for reanimated
1 parent 5c29c63 commit 66e178d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

patches/@mendix+pluggable-widgets-tools+10.15.0+002+conditional-terser-for-reanimated.patch

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/node_modules/@mendix/pluggable-widgets-tools/configs/rollup.config.native.js b/node_modules/@mendix/pluggable-widgets-tools/configs/rollup.config.native.js
2-
index bb8cc3a..277e39f 100644
2+
index bb8cc3a..34e0877 100644
33
--- a/node_modules/@mendix/pluggable-widgets-tools/configs/rollup.config.native.js
44
+++ b/node_modules/@mendix/pluggable-widgets-tools/configs/rollup.config.native.js
55
@@ -169,6 +169,17 @@ export default async args => {
@@ -20,15 +20,20 @@ index bb8cc3a..277e39f 100644
2020
return [
2121
nodeResolve({ preferBuiltins: false, mainFields: ["module", "browser", "main"] }),
2222
isTypescript
23-
@@ -223,7 +234,16 @@ export default async args => {
23+
@@ -223,7 +234,21 @@ export default async args => {
2424
})
2525
: null,
2626
image(),
2727
- production ? terser({ mangle: false }) : null,
2828
+ production ? terser(hasReanimated
2929
+ ? {
3030
+ mangle: false,
31-
+ compress: false,
31+
+ compress: {
32+
+ defaults: false,
33+
+ inline: false,
34+
+ reduce_funcs: false,
35+
+ side_effects: false,
36+
+ },
3237
+ keep_fnames: true,
3338
+ keep_classnames: true,
3439
+ module: false,

0 commit comments

Comments
 (0)