8000 Delete duplicated file in `@babel/compat-data` (#11041) · babel/babel@ed47d2e · GitHub
[go: up one dir, main page]

Skip to content

Commit ed47d2e

Browse files
Delete duplicated file in @babel/compat-data (#11041)
This file is the same as `native-modules.json`, which is exported in package.json
1 parent b54a946 commit ed47d2e

File tree

4 files changed

+8
-20
lines changed

4 files changed

+8
-20
lines changed

lerna.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"test/**",
2424
"**/test/**",
2525
"codemods/**",
26-
"# We ignore every JSON file, except for built-in-modules, built-ins and plugins defined in babel-preset-env/data.",
27-
"@(!(built-in-modules|built-ins|plugins|package)).json",
26+
"# We ignore every JSON file, except for native-modules, built-ins and plugins defined in babel-preset-env/data.",
27+
"@(!(native-modules|built-ins|plugins|package)).json",
2828
"# Until the ESLint packages version are aligned with Babel's, we ignore them",
2929
"eslint/**"
3030
]

packages/babel-compat-data/data/built-in-modules.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/babel-compat-data/data/native-modules.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"safari": "10.1",
77
"opera": "48",
88
"ios_saf": "10.3",
9-
"and_chr": "74",
10-
"and_ff": "66"
9+
"android": "61",
10+
"op_mob": "48",
11+
"and_chr": "61",
12+
"and_ff": "60",
13+
"samsung": "8.2"
1114
}
1215
}

packages/babel-compat-data/scripts/build-modules-support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Object.keys(stats).forEach(browser => {
3333
}
3434
});
3535

36-
const dataPath = path.join(__dirname, "../data/built-in-modules.json");
36+
const dataPath = path.join(__dirname, "../data/native-modules.json");
3737
const data = {
3838
"es6.module": allowedBrowsers,
3939
};

0 commit comments

Comments
 (0)
0