Skip to content

Commit 2296859

Browse files
committed
more minification
1 parent 8ff9274 commit 2296859

File tree

4 files changed

+1257
-107
lines changed

4 files changed

+1257
-107
lines changed

compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.todo-logical-expression-within-try-catch.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
function Component(props) {
22
const x = [];
33
let result;
4-
try {
5-
result = bar(props.cond && props.foo);
6-
} catch (e) {
7-
console.log(e);
4+
for (let i = 0; i < 10; i++) {
5+
if (cond) {
6+
try {
7+
result = {key: bar([props.cond && props.foo])};
8+
} catch (e) {
9+
console.log(e);
10+
}
11+
}
812
}
913
x.push(result);
1014
return <Stringify x={x} />;

compiler/packages/snap/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"resolutions": {
6060
"./**/@babel/parser": "7.7.4",
6161
"./**/@babel/types": "7.7.4",
62+
"@babel/generator": "7.2.0",
6263
"@babel/preset-flow": "7.22.5"
6364
}
6465
}

0 commit comments

Comments
 (0)