Created by: justinbhopper
This follows up #8227 (re: #issuecomment) and fixes the config for source-map-loader
to use an array for the use
property. This fixes compatibility with customize-cra
and follows the recommended usage by source-map-loader
's docs.
Without this PR, customize-cra
throws the error e.use.some() is not a function
, because it assumes that the use
property is an array if it is truthy. This may be a normal expectation by webpack configurations, I'm not sure, but I think better compatibility is important.
I don't believe this change has any impact on anything else and just ensures best compatibility.
cc: @justingrant @mrmckeb