Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

handle case where webpack asset is an array instead of a string #131

Merged
merged 1 commit into from
Feb 20, 2018

Conversation

Rich-Harris
Copy link
Member

Sometimes the items in client_info.assetsByChunkName are strings. Sometimes they're arrays! What fun. In order to handle either scenario, we need to ensure that we're always dealing with arrays, and [].concat(maybeArrayButMaybeNot) is the easiest way to do that.

Related issue: #130

@Rich-Harris Rich-Harris merged commit 3ed9ce2 into master Feb 20, 2018
@Rich-Harris Rich-Harris deleted the webpack-insanity branch February 20, 2018 17:18
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.

1 participant