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

fix(build): dont use Array.flatMap #588

Merged
merged 2 commits into from May 20, 2020

Conversation

raunofreiberg
Copy link
Contributor

@raunofreiberg raunofreiberg commented May 18, 2020

Thank you for contributing to Reach UI! Please fill in this template before submitting your PR to help us process your request more quickly.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code (Compile and run).
  • Add or edit tests to reflect the change (Run with yarn test).
  • Add or edit Storybook examples to reflect the change (Run with yarn start).
  • Ensure formatting is consistent with the project's Prettier configuration.

This pull request:

  • Creates a new package
  • Fixes a bug in an existing package
  • Adds additional features/functionality to an existing package
  • Updates documentation or example code
  • Other

Closes #586

I figured it's probably more straightforward to just drop Array.flatMap for now. We could instead check for 'flatMap' in Array as well, but I don't see the point.

@codesandbox-ci
Copy link

codesandbox-ci bot commented May 18, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3805ad4:

Sandbox Source
tender-lichterman-6op1i Configuration

@raunofreiberg raunofreiberg changed the title fix(build): fallback for Array.flatMap fix(build): dont use Array.flatMap May 18, 2020
@@ -267,10 +268,10 @@ function createConfigItems(type: any, items: any[]) {
function mergeConfigItems(type: any, ...configItemsToMerge: any[]) {
const mergedItems: any[] = [];

configItemsToMerge.forEach(configItemToMerge => {
configItemsToMerge.forEach((configItemToMerge) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks prettier

@raunofreiberg
Copy link
Contributor Author

Yay! The components now work per CodeSandbox build: https://codesandbox.io/s/dark-cloud-m46tz

@chaance chaance added the Type: Housekeeping General housekeeping label May 20, 2020
@chaance chaance merged commit ee2aad8 into reach:master May 20, 2020
@raunofreiberg raunofreiberg deleted the fix/codesandbox-ci-build branch May 20, 2020 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Housekeeping General housekeeping
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CodeSandbox CI builds don't include JS
2 participants