Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Oct 26, 2022
1 parent f76881d commit 0d23586
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
13 changes: 13 additions & 0 deletions packages/babel-compat-data/data/plugins.json
Expand Up @@ -5,6 +5,7 @@
"edge": "94",
"firefox": "93",
"node": "16.11",
"deno": "1.14",
"electron": "15.0"
},
"proposal-class-static-block": {
Expand All @@ -23,6 +24,7 @@
"firefox": "90",
"safari": "15",
"node": "16.9",
"deno": "1.9",
"ios": "15",
"electron": "13.0"
},
Expand All @@ -44,6 +46,7 @@
"firefox": "90",
"safari": "14.1",
"node": "12",
"deno": "1",
"ios": "15",
"samsung": "11",
"electron": "6.0"
Expand All @@ -67,6 +70,7 @@
"firefox": "90",
"safari": "15",
"node": "14.6",
"deno": "1",
"ios": "15",
"samsung": "14",
"electron": "10.0"
Expand All @@ -90,6 +94,7 @@
"firefox": "70",
"safari": "13",
"node": "12.5",
"deno": "1",
"ios": "13",
"samsung": "11",
"rhino": "1.7.14",
Expand All @@ -115,6 +120,7 @@
"firefox": "79",
"safari": "14",
"node": "15",
"deno": "1.2",
"ios": "14",
"samsung": "14",
"electron": "10.0"
Expand All @@ -138,6 +144,7 @@
"firefox": "72",
"safari": "13.1",
"node": "14",
"deno": "1",
"ios": "13.4",
"samsung": "13",
"electron": "8.0"
Expand All @@ -161,6 +168,7 @@
"firefox": "74",
"safari": "13.1",
"node": "16.9",
"deno": "1.9",
"ios": "13.4",
"electron": "13.0"
},
Expand All @@ -182,6 +190,7 @@
"firefox": "62",
"safari": "12",
"node": "10",
"deno": "1",
"ios": "12",
"samsung": "9",
"rhino": "1.7.14",
Expand All @@ -207,6 +216,7 @@
"firefox": "58",
"safari": "11.1",
"node": "10",
"deno": "1",
"ios": "11.3",
"samsung": "9",
"electron": "3.0"
Expand Down Expand Up @@ -240,6 +250,7 @@
"firefox": "57",
"safari": "12",
"node": "10",
"deno": "1",
"ios": "12",
"samsung": "8",
"electron": "3.0"
Expand All @@ -263,6 +274,7 @@
"firefox": "55",
"safari": "11.1",
"node": "8.3",
"deno": "1",
"ios": "11.3",
"samsung": "8",
"electron": "2.0"
Expand Down Expand Up @@ -298,6 +310,7 @@
"firefox": "78",
"safari": "11.1",
"node": "10",
"deno": "1",
"ios": "11.3",
"samsung": "9",
"electron": "3.0"
Expand Down
8 changes: 6 additions & 2 deletions packages/babel-compat-data/scripts/build-data.js
Expand Up @@ -2,14 +2,18 @@

const path = require("path");
const compatData = require("@mdn/browser-compat-data").javascript;
const { process } = require("./build-modules-support");
const { process: processData } = require("./build-modules-support");
const {
generateData,
environments,
writeFile,
defineLegacyPluginAliases,
} = require("./utils-build-data");

if (process.cwd().endsWith("scripts")) {
throw new Error("Please run this script from the root of the package");
}

for (const target of ["plugin", "corejs2-built-in"]) {
// We ignore 'overlapping' here, because it's already generated by
// built-bugfixes-targets.js which has a complete view over all the
Expand All @@ -20,7 +24,7 @@ for (const target of ["plugin", "corejs2-built-in"]) {
);
if (target === "plugin") {
// add export-namespace-from from @mdn/browser-compat-data
const exportNamespaceFromCompatData = process(
const exportNamespaceFromCompatData = processData(
compatData.statements.export.namespace
);
// the node.js compat data is 12.0, the first node version ships `export *` behind a flag
Expand Down
@@ -1,7 +1,6 @@
"use strict";

var _selfBrandCheck = /*#__PURE__*/new WeakSet();

// These syntaxes should be transpiled:
// static {} / ??= / #self in / C?.#self
// The class declaration and the static private property should not be transpiled
Expand Down
@@ -1,11 +1,10 @@
"use strict";

var _selfBrandCheck = /*#__PURE__*/new WeakSet();

// These syntaxes should be transpiled:
// static {} / ??= / #self in / C?.#self
// The class declaration and the static private property should not be transpiled
class C {
static #self = (_selfBrandCheck.add(this), C);
static #_ = C.#self ?? (C.#self = _selfBrandCheck.has(C?.#self));
static #_ = C.#self ?? (C.#self = _selfBrandCheck.has(C === null || C === void 0 ? void 0 : C.#self));
}

0 comments on commit 0d23586

Please sign in to comment.