Skip to content

Commit

Permalink
Fix bug introduced by babel#13024
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Mar 30, 2021
1 parent 8e8954b commit 18ed718
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/babel-compat-data/scripts/utils-build-data.js
Expand Up @@ -88,7 +88,10 @@ exports.getLowestImplementedVersion = (
};

exports.generateData = (environments, features) => {
return Object.values(features).map(options => {
const data = {};

// eslint-disable-next-line prefer-const
for (let [key, options] of Object.entries(features)) {
if (!options.features) {
options = {
features: [options],
Expand All @@ -103,8 +106,10 @@ exports.generateData = (environments, features) => {
});
addElectronSupportFromChromium(plugin);

return plugin;
});
data[key] = plugin;
}

return data;
};

exports.writeFile = function (data, dataPath, name) {
Expand Down

0 comments on commit 18ed718

Please sign in to comment.