We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f6f904 commit a3201c8Copy full SHA for a3201c8
crates/swc_ecma_minifier/tests/fixture/issues/react/hooks/6/input.js
@@ -0,0 +1,16 @@
1
+const decideZoomByAccuracy = (range) => {
2
+ const isUnder = (accuracy) => {
3
+ return range <= accuracy;
4
+ };
5
+ if (isUnder(0)) {
6
+ return 15;
7
+ }
8
+ if (isUnder(50)) {
9
10
11
+ if (isUnder(100)) {
12
13
14
+ return 11;
15
+};
16
+export const zoom = decideZoomByAccuracy(75);
crates/swc_ecma_minifier/tests/fixture/issues/react/hooks/6/output.js
@@ -0,0 +1 @@
+export const zoom = 15;
0 commit comments