Skip to content

Conversation

@kitten
Copy link
Contributor

@kitten kitten commented Apr 17, 2019

No description provided.

This implements specific rendering logic that skips StyledComponents entirely, if a new enough version of styled-component is installed and the optimisation can be applied. It does this by computing "attrs" manually and skipping the styled-components logic entirely by rendering the target directly.
@kitten kitten requested a review from imranolas April 17, 2019 16:04
@kitten kitten force-pushed the fix-styled-components-optimisation branch from 9dc822f to bed10b1 Compare April 17, 2019 16:53
@codecov-io
Copy link

codecov-io commented Apr 17, 2019

Codecov Report

Merging #3 into master will decrease coverage by 2.92%.
The diff coverage is 71.42%.

Impacted file tree graph

@@ Coverage Diff @@ ## master #3 +/- ## ========================================== - Coverage 100% 97.07% -2.93%  ========================================== Files 9 10 +1 Lines 439 479 +40 Branches 72 84 +12 ========================================== + Hits 439 465 +26  - Misses 0 10 +10  - Partials 0 4 +4
Impacted Files Coverage Δ
src/visitor.js 100% <100%> (ø) ⬆️
src/render/styledComponent.js 58.82% <58.82%> (ø)

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 96105c5...b20ad7e. Read the comment docs.

@kitten kitten force-pushed the fix-styled-components-optimisation branch from 0878666 to bb13db6 Compare May 1, 2019 14:49
@kitten kitten merged commit aec36a6 into master May 1, 2019
@kitten kitten deleted the fix-styled-components-optimisation branch May 1, 2019 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants