-
-
Notifications
You must be signed in to change notification settings - Fork 739
feat(minifier): simplify assigment with array destructuring #16580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
CodSpeed Performance ReportMerging #16580 will degrade performances by 4.15%Comparing Summary
Benchmarks breakdown
Footnotes
|
…ix/inline-statements
|
i have been playing around and trying to figure out some of cases for object assignments initially i tough that i can just compress this var { a, a: c } = { a: { f: 1 } }to var a = { f: 1}, c = athis kinda gets annoying as syntax is really fluid eg. var { a: { f }, a } = { a: { f: 1 } }i think this should be collapsed to var { f } = a = { f: 1 }note: eg. var { a: { c }, a } = { a: { c: { d: {} } } }
console.log(c === a.c)
///
var { c } = a = { c: { d: {} } }
console.log(c === a.c) |
supper early version
todo: