webpack-contrib / less-loader

Compiles Less to CSS
MIT License
959 stars 194 forks source link

fix(perf): avoid using `klona` for `less` options #520

Closed alexander-akait closed 1 year ago

alexander-akait commented 1 year ago

This PR contains a:

Motivation / Use-Case

Better perf and less deps

Breaking Changes

No

Additional Info

We need only plugins, so we need to clone only this

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.08 :tada:

Comparison is base (401978c) 93.37% compared to head (1bc3c1e) 93.46%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #520 +/- ## ========================================== + Coverage 93.37% 93.46% +0.08% ========================================== Files 3 3 Lines 151 153 +2 Branches 33 34 +1 ========================================== + Hits 141 143 +2 Misses 10 10 ``` | [Impacted Files](https://app.codecov.io/gh/webpack-contrib/less-loader/pull/520?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=webpack-contrib) | Coverage Δ | | |---|---|---| | [src/utils.js](https://app.codecov.io/gh/webpack-contrib/less-loader/pull/520?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=webpack-contrib#diff-c3JjL3V0aWxzLmpz) | `95.09% <100.00%> (+0.09%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.