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

feat(tokens): add componentIndex #4572

Merged
merged 2 commits into from Jul 20, 2020

Conversation

redallen
Copy link
Contributor

@redallen redallen commented Jul 17, 2020

What: Closes #4573.

For legacy purposes, the current index.js includes all tokens twice. This PR adds a componentIndex.js which includes them only once. This is useful downstream in patternfly-org so we include tokens in our bundle only once when we import * as tokensModule from "@patternfly/react-tokens/dist/js";.

Additional issues:

@patternfly-build
Copy link
Contributor

patternfly-build commented Jul 17, 2020

Copy link
Member

@ddonahue007 ddonahue007 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@evwilkin evwilkin left a comment

Choose a reason for hiding this comment

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

LGTM

@evwilkin evwilkin merged commit 3c7e7f8 into patternfly:master Jul 20, 2020
@evwilkin evwilkin deleted the feat/smaller-tokens branch July 20, 2020 14:29
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-catalog-view-extension@4.5.3
  • @patternfly/react-charts@6.6.2
  • @patternfly/react-core@4.32.3
  • @patternfly/react-docs@5.6.4
  • @patternfly/react-inline-edit-extension@4.5.30
  • demo-app-ts@4.23.3
  • @patternfly/react-table@4.12.3
  • @patternfly/react-tokens@4.7.0
  • @patternfly/react-topology@4.4.32
  • @patternfly/react-virtualized-extension@4.5.22

Thanks for your contribution! 🎉

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.

React-tokens exported twice
4 participants