Skip to content

Commit

Permalink
Delete duplicated file in @babel/compat-data (#11041)
Browse files Browse the repository at this point in the history
This file is the same as `native-modules.json`, which is exported in package.json
  • Loading branch information
nicolo-ribaudo committed Jan 24, 2020
1 parent b54a946 commit ed47d2e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 20 deletions.
4 changes: 2 additions & 2 deletions lerna.json
Expand Up @@ -23,8 +23,8 @@
"test/**",
"**/test/**",
"codemods/**",
"# We ignore every JSON file, except for built-in-modules, built-ins and plugins defined in babel-preset-env/data.",
"@(!(built-in-modules|built-ins|plugins|package)).json",
"# We ignore every JSON file, except for native-modules, built-ins and plugins defined in babel-preset-env/data.",
"@(!(native-modules|built-ins|plugins|package)).json",
"# Until the ESLint packages version are aligned with Babel's, we ignore them",
"eslint/**"
]
Expand Down
15 changes: 0 additions & 15 deletions packages/babel-compat-data/data/built-in-modules.json

This file was deleted.

7 changes: 5 additions & 2 deletions packages/babel-compat-data/data/native-modules.json
Expand Up @@ -6,7 +6,10 @@
"safari": "10.1",
"opera": "48",
"ios_saf": "10.3",
"and_chr": "74",
"and_ff": "66"
"android": "61",
"op_mob": "48",
"and_chr": "61",
"and_ff": "60",
"samsung": "8.2"
}
}
Expand Up @@ -33,7 +33,7 @@ Object.keys(stats).forEach(browser => {
}
});

const dataPath = path.join(__dirname, "../data/built-in-modules.json");
const dataPath = path.join(__dirname, "../data/native-modules.json");
const data = {
"es6.module": allowedBrowsers,
};
Expand Down

0 comments on commit ed47d2e

Please sign in to comment.