getGlobalsList = packagePolicy => {
  if (!packagePolicy || !packagePolicy.globals) {
    return [];
  }
  return entries(packagePolicy.globals)
    .filter(([_key, value]) => value)
    .map(([key, _vvalue]) => key);
}
Get list of globals from package policy
@param {PackagePolicy} [packagePolicy]
@returns {Array<string>}