webpack-contrib / style-loader

Style Loader
MIT License
1.65k stars 473 forks source link

fix: small perf improvement #544

Closed alexander-akait closed 2 years ago

alexander-akait commented 2 years ago

This PR contains a:

Motivation / Use-Case

now we cache contextify

Breaking Changes

No

Additional Info

No

codecov[bot] commented 2 years ago

Codecov Report

Merging #544 (9cce059) into master (c799ecc) will decrease coverage by 5.35%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #544      +/-   ##
==========================================
- Coverage   95.03%   89.67%   -5.36%     
==========================================
  Files          15       15              
  Lines         302      310       +8     
  Branches      148      155       +7     
==========================================
- Hits          287      278       -9     
- Misses         15       26      +11     
- Partials        0        6       +6     
Impacted Files Coverage Δ
src/utils.js 81.50% <100.00%> (-11.41%) :arrow_down:
src/runtime/injectStylesIntoLinkTag.js 100.00% <0.00%> (ø)
src/runtime/injectStylesIntoStyleTag.js 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c799ecc...9cce059. Read the comment docs.