Skip to content
This repository was archived by the owner on Jun 5, 2026. It is now read-only.

fix: Config array merging - #391

Merged
wwilsman merged 2 commits into
masterfrom
ww/fix-config-array-merge
Oct 4, 2019
Merged

fix: Config array merging#391
wwilsman merged 2 commits into
masterfrom
ww/fix-config-array-merge

Conversation

@wwilsman

@wwilsman wwilsman commented Oct 4, 2019

Copy link
Copy Markdown
Contributor

Purpose

By default, the deepmerge package will merge nested arrays. When merging default options with overrides, this had the effect of merging default widths with user-defined widths.

Approach

Pass an arrayMerge option that will overwrite default arrays with new arrays instead of merging them.

Added a widths option to our test config to verify that we should only see 375 and 1200 widths and not also default 1280 widths. Due to this, all of our snapshots have a new width that needs to be approved.

@wwilsman
wwilsman requested a review from Robdel12 October 4, 2019 15:51

@Robdel12 Robdel12 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🏁

@wwilsman
wwilsman merged commit 1574631 into master Oct 4, 2019
@delete-merged-branch
delete-merged-branch Bot deleted the ww/fix-config-array-merge branch October 4, 2019 16:00
djones pushed a commit that referenced this pull request Oct 4, 2019
## [0.18.3](v0.18.2...v0.18.3) (2019-10-04)

### Bug Fixes

* 🐛 Config array merging ([#391](#391)) ([1574631](1574631))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants