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

Use Styled Components as peer dependencies and do not bundle them #29

Merged
merged 1 commit into from
Feb 14, 2021

Conversation

ligaz
Copy link
Contributor

@ligaz ligaz commented Feb 12, 2021

Currently Styled Components (along with React) were bundled in the final module bundle. This change addresses
this by moving styled-components as a peer dependency and specifying it as an external module to Webpack.
React and ReactDOM are also moved as external modules so that they are not present in the final bundle.

Additional changes:

  • Update Styled Components to the latest version
  • Remove styled-theming dependency as it was not used
  • Remove the theme default prop from components because it is being passed by the theme provider.
  • Add basic Prettier config with a one rule to use single quote for strings (same as in ESLint config).

Currently Styled Components (along with React) were bundled in the final module bundle. This change addresses
this by moving `styled-components` as a peer dependency and specifying it as an external module to Webpack.
React and ReactDOM are also moved as external modules so that they are not present in the final bundle.

Additional changes
* Update Styled Components to the latest version
* Remove `styled-theming` dependency as it was not used
* Remove the `theme` default prop from components because it is being passed by the theme provider.
* Add basic Prettier config with a one rule to use single quote for strings (same as in ESLint config).
@rohanchandra rohanchandra merged commit dab46bb into rohanchandra:master Feb 14, 2021
@rohanchandra
Copy link
Owner

Awesome, thanks for these changes. Published in 1.5.0.

@ligaz
Copy link
Contributor Author

ligaz commented Feb 14, 2021

Great. Thanks for merging it and for the new version published.

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.

2 participants