Skip to content

Commit

Permalink
feat: add compat-data of proposal-export-namespace-from
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jul 17, 2020
1 parent 842112b commit c8d602d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/babel-compat-data/data/plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -410,5 +410,13 @@
"phantom": "2",
"samsung": "1",
"electron": "0.20"
},
"proposal-export-namespace-from": {
"chrome": "72",
"edge": "79",
"opera": "60",
"firefox": "80",
"node": "13.2",
"samsung": "11.0"
}
}
13 changes: 13 additions & 0 deletions packages/babel-compat-data/scripts/build-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ for (const target of ["plugin", "corejs2-built-in"]) {
environments,
require(`./data/${target}-features`)
);
if (target === "plugin") {
// add export-namespace-from from mdn-browser-compat-data
// todo: replace the hardcoded compat data to mdn-browser-compat-data
// after https://github.com/mdn/browser-compat-data/pull/6394 is published
newData["proposal-export-namespace-from"] = {
chrome: "72",
edge: "79",
opera: "60",
firefox: "80",
node: "13.2",
samsung: "11.0",
};
}
const dataPath = path.join(__dirname, `../data/${target}s.json`);

if (!writeFile(newData, dataPath, target)) {
Expand Down

0 comments on commit c8d602d

Please sign in to comment.