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 isArray check for externals #437

Merged
merged 1 commit into from
Jun 21, 2019
Merged

Use isArray check for externals #437

merged 1 commit into from
Jun 21, 2019

Conversation

guybedford
Copy link
Contributor

@guybedford guybedford commented Jun 21, 2019

We support both object and array forms for externals. In the array case the check of instanceof Array is failing for Next.js likely due to the use of a separate context for the configuration than ncc itself.

This fixes that behaviour by using isArray.

@guybedford guybedford requested a review from styfle as a code owner June 21, 2019 11:25
@codecov-io
Copy link

Codecov Report

Merging #437 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #437   +/-   ##
=======================================
  Coverage   74.68%   74.68%           
=======================================
  Files          13       13           
  Lines         395      395           
=======================================
  Hits          295      295           
  Misses        100      100
Impacted Files Coverage Δ
src/index.js 83.53% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b1d5c3...0bc9ca6. Read the comment docs.

@styfle styfle merged commit 27e50d9 into master Jun 21, 2019
@styfle styfle deleted the externals-array branch June 21, 2019 12:53
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.

3 participants