Delete duplicated file in @babel/compat-data (#11041)

This file is the same as `native-modules.json`, which is exported in package.json
This commit is contained in:
Nicolò Ribaudo 2020-01-24 22:45:37 +01:00 committed by GitHub
parent b54a946048
commit ed47d2e89a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 20 deletions

View File

@ -23,8 +23,8 @@
"test/**", "test/**",
"**/test/**", "**/test/**",
"codemods/**", "codemods/**",
"# We ignore every JSON file, except for built-in-modules, built-ins and plugins defined in babel-preset-env/data.", "# We ignore every JSON file, except for native-modules, built-ins and plugins defined in babel-preset-env/data.",
"@(!(built-in-modules|built-ins|plugins|package)).json", "@(!(native-modules|built-ins|plugins|package)).json",
"# Until the ESLint packages version are aligned with Babel's, we ignore them", "# Until the ESLint packages version are aligned with Babel's, we ignore them",
"eslint/**" "eslint/**"
] ]

View File

@ -1,15 +0,0 @@
{
"es6.module": {
"edge": "16",
"firefox": "60",
"chrome": "61",
"safari": "10.1",
"opera": "48",
"ios_saf": "10.3",
"android": "61",
"op_mob": "48",
"and_chr": "61",
"and_ff": "60",
"samsung": "8.2"
}
}

View File

@ -6,7 +6,10 @@
"safari": "10.1", "safari": "10.1",
"opera": "48", "opera": "48",
"ios_saf": "10.3", "ios_saf": "10.3",
"and_chr": "74", "android": "61",
"and_ff": "66" "op_mob": "48",
"and_chr": "61",
"and_ff": "60",
"samsung": "8.2"
} }
} }

View File

@ -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 = { const data = {
"es6.module": allowedBrowsers, "es6.module": allowedBrowsers,
}; };