fix(perf): avoid using klona for postcss options#658
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #658 +/- ##
==========================================
- Coverage 88.76% 88.70% -0.07%
==========================================
Files 3 3
Lines 356 354 -2
Branches 115 115
==========================================
- Hits 316 314 -2
Misses 37 37
Partials 3 3
☔ View full report in Codecov by Sentry. |
| }; | ||
|
|
||
| result.config = result.config(api); | ||
| return { ...result, config: result.config(api) }; |
There was a problem hiding this comment.
Very uninformed questions, but this is not the same as a deep clone :
- Will it not create issue ?
- Was a deep clone here an overkill in the first place ?
Thank you for your time ! You are a pillar of the Webpack ecosystem !
There was a problem hiding this comment.
No, it is not deep clone, but here result, contains only path, so we can use to use ..., just to avoid mutable result
Will it not create issue ?
Was a deep clone here an overkill in the first place ?
As I said above, there is no deep only, here the config property from require and path (it just a string)
There was a problem hiding this comment.
Ok thank you so mush for the details and your time. Have a nice day !
This PR contains a:
Motivation / Use-Case
Do not use
klona- better perf and less depsBreaking Changes
No
Additional Info
No