diff --git a/package.json b/package.json index 5d5a57e..b532692 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "generate" ], "devDependencies": { - "@putout/plugin-apply-optional-chaining": "^5.0.1", + "@putout/plugin-apply-optional-chaining": "^6.0.0", "@putout/plugin-apply-shorthand-properties": "^5.1.0", "@putout/plugin-apply-template-literals": "^3.0.0", "@putout/plugin-conditions": "^4.0.1", diff --git a/test/fixture/apply-optional-chaining.js b/test/fixture/apply-optional-chaining.js index 2d5421b..c264a95 100644 --- a/test/fixture/apply-optional-chaining.js +++ b/test/fixture/apply-optional-chaining.js @@ -1,2 +1,4 @@ if (a && a.b && a.b.c) - fn(); \ No newline at end of file + fn(); + +Transition && (Transition.running = !1); \ No newline at end of file