-
-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(minifier): remove incorrect not + conditional expression compress…
…ion (#8759) ```js var foo = (a) => { if (!(a == null ? void 0 : a.b)) return a.b(to); }; foo(null) ``` was minified into ```js var foo = (a) => { if (a == null && a.b) return; a.b(to); }; foo(null); ``` which is incorrect (no error happens before and error happens after). I found this while trying rolldown-vite with ecosystem-ci. refs #8651
- Loading branch information
1 parent
ef55e7c
commit 66c33ed
Showing
2 changed files
with
4 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters