Add export-namespace-from to preset-env (#11849)

* feat: add compat-data of proposal-export-namespace-from

* feat: add export-namespace-from to preset-env

* chore: update test fixtures

* address review comments
This commit is contained in:
Huáng Jùnliàng
2020-07-21 16:56:31 -04:00
parent eba4c3b6ed
commit cdb81d7703
129 changed files with 255 additions and 8 deletions

View File

@@ -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)) {