-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Simplify styled-components + Inject css to document.head
#79
Conversation
✅ Deploy Preview for jest-preview-library canceled.
|
document.head
37325a1
to
200c76f
Compare
@@ -10,21 +10,11 @@ export function debug(element: Element = document.body): void { | |||
}); | |||
} | |||
|
|||
// If user use styled-components | |||
if (getStyle) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we safely remove ./styled-components
now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For sure. I will remove that.
We don't need to access to styled-component
's internal to make jest preview works anymore. But at least I learned a lot of how styled-components
works
Features
styled-component
's CSS to disk (cache folder)head
, instead ofbody
Chores
npm run test:only
tonpm run test:dev