lib/getReactNativeExternals.js
function makeWebpackExternalsConfig(moduleNames) {
  return moduleNames.reduce((externals, moduleName) => Object.assign(externals, {
    [moduleName]: `commonjs ${moduleName}`,
  }), {});
}
function makeWebpackExternalsConfig(moduleNames) {
  return moduleNames.reduce((externals, moduleName) => Object.assign(externals, {
    [moduleName]: `commonjs ${moduleName}`,
  }), {});
}
function makeWebpackExternalsConfig ( moduleNames ) { return moduleNames . reduce ( ( externals , moduleName ) => Object . assign ( externals , { [ moduleName ] : ` ${ moduleName } ` , } ) , { } ) ; }
Make a webpack 'externals' object from the provided CommonJS module names.
@param  {Array<String>} moduleNames The list of module names
@return {Object}                    A webpack 'externals' config object
Make a webpack externals object from the provided CommonJS module names .