Skip to content
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

Prop filtering #227

Merged
merged 15 commits into from
Aug 4, 2017
Merged

Prop filtering #227

merged 15 commits into from
Aug 4, 2017

Conversation

emmatown
Copy link
Member

@emmatown emmatown commented Aug 4, 2017

What:

Filter props on string tags.

Why:

#183

How:

Regex generated at build time with babel-plugin-preval.

Checklist:

  • Documentation
  • Tests
  • Code complete

This adds about 700b to the react version.

![core gzip size](http://img.badgesize.io/https://unpkg.com/emotion/dist/DO-NOT-USE.min.js?compression=gzip&label=core%20gzip%20size)
![core size](http://img.badgesize.io/https://unpkg.com/emotion/dist/DO-NOT-USE.min.js?label=core%20size)
![react gzip size](http://img.badgesize.io/https://unpkg.com/emotion/dist/DO-NOT-USE-rect.min.js?compression=gzip&label=react%20gzip%20size)
![react size](http://img.badgesize.io/https://unpkg.com/emotion/dist/DO-NOT-USE-react.min.js?label=react%20size)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if it's clear enough that the react size includes the core size.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't worry about it for the pr. If it looks confusing we can edit the readme later.

@codecov-io
Copy link

codecov-io commented Aug 4, 2017

Codecov Report

Merging #227 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #227      +/-   ##
==========================================
+ Coverage   90.27%   90.31%   +0.04%     
==========================================
  Files          20       20              
  Lines         967      971       +4     
  Branches      261      263       +2     
==========================================
+ Hits          873      877       +4     
  Misses         76       76              
  Partials       18       18
Impacted Files Coverage Δ
src/utils.js 71.42% <100%> (ø) ⬆️
src/macro-styled.js 100% <100%> (ø) ⬆️
src/react/index.js 100% <100%> (ø) ⬆️

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 0925168...7e96505. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants