fix(preset-env): Use core-js-compat and @babel/compat-data directly (#3968)

This commit is contained in:
Austaras 2022-03-11 20:49:53 +08:00 committed by GitHub
parent 95ab49737c
commit 487273fc5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
42 changed files with 224 additions and 12398 deletions

View File

@ -38,6 +38,16 @@ jobs:
profile: minimal
components: clippy
- uses: actions/setup-node@v2
with:
node-version: "16"
cache: "yarn"
- name: Install node dependencies
shell: bash
run: |
yarn
- name: Check
run: |
cargo clippy --all

View File

@ -60,6 +60,16 @@ jobs:
with:
profile: minimal
- uses: actions/setup-node@v2
with:
node-version: "16"
cache: "yarn"
- name: Install node dependencies
shell: bash
run: |
yarn
- name: Cache
uses: actions/cache@v2
with:

View File

@ -34,6 +34,16 @@ jobs:
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- uses: actions/setup-node@v2
with:
node-version: "16"
cache: "yarn"
- name: Install node dependencies
shell: bash
run: |
yarn
- name: Build
run: |
(cd crates/wasm && yarn)

View File

@ -45,6 +45,8 @@ pub struct BrowserData<T: Default> {
pub opera_mobile: T,
#[serde(default)]
pub rhino: T,
#[serde(default)]
pub deno: T,
}
pub type Versions = BrowserData<Option<Version>>;

View File

@ -345,7 +345,7 @@ fn env_entry_chrome_49() {
println!("{}", f);
assert_eq!(f.lines().count(), 78);
assert_eq!(f.lines().count(), 83);
}
#[test]
@ -357,7 +357,7 @@ fn env_entry_chrome_71() {
println!("{}", f);
assert_eq!(f.lines().count(), 7);
assert_eq!(f.lines().count(), 9);
}
#[test]
@ -369,7 +369,7 @@ fn env_query_chrome_71() {
println!("{}", f);
assert_eq!(f.lines().count(), 7);
assert_eq!(f.lines().count(), 9);
}
#[test]

View File

@ -1,8 +0,0 @@
const data = require('core-js-compat/data');
// for (const feature in data) {
// const browserData = data[feature];
//
// }
console.log(JSON.stringify(data))

View File

@ -1,12 +0,0 @@
const fs = require("fs");
const path = require("path");
const data = require("@babel/compat-data/plugins");
const transform_data_json = path.join(
__dirname,
"..",
"src",
"transform_data.json"
);
fs.writeFileSync(transform_data_json, JSON.stringify(data, null, 4) + "\n");

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,8 @@ use swc_common::collections::AHashMap;
use crate::Versions;
pub static DATA: Lazy<AHashMap<String, Versions>> = Lazy::new(|| {
serde_json::from_str(include_str!("compat.json"))
.expect("failed parse corejs3-compat data.json")
serde_json::from_str(include_str!(
"../../../../node_modules/core-js-compat/data.json"
))
.expect("failed parse corejs3-compat data.json")
});

File diff suppressed because it is too large Load Diff

View File

@ -12,33 +12,37 @@ use swc_ecma_visit::{Fold, FoldWith};
use super::compat::DATA as CORE_JS_COMPAT_DATA;
static ENTRIES: Lazy<AHashMap<String, Vec<&'static str>>> = Lazy::new(|| {
serde_json::from_str::<AHashMap<String, Vec<String>>>(include_str!("entries.json"))
.expect("failed to parse entries.json from core js 3")
.into_iter()
.map(|(k, v)| {
(
k,
v.into_iter()
.map(|s: String| &*Box::leak(s.into_boxed_str()))
.collect::<Vec<_>>(),
)
})
.collect()
serde_json::from_str::<AHashMap<String, Vec<String>>>(include_str!(
"../../../../node_modules/core-js-compat/entries.json"
))
.expect("failed to parse entries.json from core js 3")
.into_iter()
.map(|(k, v)| {
(
k,
v.into_iter()
.map(|s: String| &*Box::leak(s.into_boxed_str()))
.collect::<Vec<_>>(),
)
})
.collect()
});
static MODULES_BY_VERSION: Lazy<AHashMap<Version, Vec<&'static str>>> = Lazy::new(|| {
serde_json::from_str::<AHashMap<_, _>>(include_str!("modules-by-versions.json"))
.expect("failed to parse modules-by-versions.json")
.into_iter()
.map(|(k, v): (Version, Vec<String>)| {
(
k,
v.into_iter()
.map(|s: String| &*Box::leak(s.into_boxed_str()))
.collect::<Vec<_>>(),
)
})
.collect()
serde_json::from_str::<AHashMap<_, _>>(include_str!(
"../../../../node_modules/core-js-compat/modules-by-versions.json"
))
.expect("failed to parse modules-by-versions.json")
.into_iter()
.map(|(k, v): (Version, Vec<String>)| {
(
k,
v.into_iter()
.map(|s: String| &*Box::leak(s.into_boxed_str()))
.collect::<Vec<_>>(),
)
})
.collect()
});
#[derive(Debug)]

View File

@ -1,350 +0,0 @@
{
"3.0": [
"es.symbol",
"es.symbol.description",
"es.symbol.async-iterator",
"es.symbol.has-instance",
"es.symbol.is-concat-spreadable",
"es.symbol.iterator",
"es.symbol.match",
"es.symbol.replace",
"es.symbol.search",
"es.symbol.species",
"es.symbol.split",
"es.symbol.to-primitive",
"es.symbol.to-string-tag",
"es.symbol.unscopables",
"es.array.concat",
"es.array.copy-within",
"es.array.every",
"es.array.fill",
"es.array.filter",
"es.array.find",
"es.array.find-index",
"es.array.flat",
"es.array.flat-map",
"es.array.for-each",
"es.array.from",
"es.array.includes",
"es.array.index-of",
"es.array.is-array",
"es.array.iterator",
"es.array.join",
"es.array.last-index-of",
"es.array.map",
"es.array.of",
"es.array.reduce",
"es.array.reduce-right",
"es.array.reverse",
"es.array.slice",
"es.array.some",
"es.array.sort",
"es.array.species",
"es.array.splice",
"es.array.unscopables.flat",
"es.array.unscopables.flat-map",
"es.array-buffer.constructor",
"es.array-buffer.is-view",
"es.array-buffer.slice",
"es.data-view",
"es.date.now",
"es.date.to-iso-string",
"es.date.to-json",
"es.date.to-primitive",
"es.date.to-string",
"es.function.bind",
"es.function.has-instance",
"es.function.name",
"es.json.to-string-tag",
"es.map",
"es.math.acosh",
"es.math.asinh",
"es.math.atanh",
"es.math.cbrt",
"es.math.clz32",
"es.math.cosh",
"es.math.expm1",
"es.math.fround",
"es.math.hypot",
"es.math.imul",
"es.math.log10",
"es.math.log1p",
"es.math.log2",
"es.math.sign",
"es.math.sinh",
"es.math.tanh",
"es.math.to-string-tag",
"es.math.trunc",
"es.number.constructor",
"es.number.epsilon",
"es.number.is-finite",
"es.number.is-integer",
"es.number.is-nan",
"es.number.is-safe-integer",
"es.number.max-safe-integer",
"es.number.min-safe-integer",
"es.number.parse-float",
"es.number.parse-int",
"es.number.to-fixed",
"es.number.to-precision",
"es.object.assign",
"es.object.create",
"es.object.define-getter",
"es.object.define-properties",
"es.object.define-property",
"es.object.define-setter",
"es.object.entries",
"es.object.freeze",
"es.object.from-entries",
"es.object.get-own-property-descriptor",
"es.object.get-own-property-descriptors",
"es.object.get-own-property-names",
"es.object.get-prototype-of",
"es.object.is",
"es.object.is-extensible",
"es.object.is-frozen",
"es.object.is-sealed",
"es.object.keys",
"es.object.lookup-getter",
"es.object.lookup-setter",
"es.object.prevent-extensions",
"es.object.seal",
"es.object.set-prototype-of",
"es.object.to-string",
"es.object.values",
"es.parse-float",
"es.parse-int",
"es.promise",
"es.promise.finally",
"es.reflect.apply",
"es.reflect.construct",
"es.reflect.define-property",
"es.reflect.delete-property",
"es.reflect.get",
"es.reflect.get-own-property-descriptor",
"es.reflect.get-prototype-of",
"es.reflect.has",
"es.reflect.is-extensible",
"es.reflect.own-keys",
"es.reflect.prevent-extensions",
"es.reflect.set",
"es.reflect.set-prototype-of",
"es.regexp.constructor",
"es.regexp.exec",
"es.regexp.flags",
"es.regexp.to-string",
"es.set",
"es.string.code-point-at",
"es.string.ends-with",
"es.string.from-code-point",
"es.string.includes",
"es.string.iterator",
"es.string.match",
"es.string.pad-end",
"es.string.pad-start",
"es.string.raw",
"es.string.repeat",
"es.string.replace",
"es.string.search",
"es.string.split",
"es.string.starts-with",
"es.string.trim",
"es.string.trim-end",
"es.string.trim-start",
"es.string.anchor",
"es.string.big",
"es.string.blink",
"es.string.bold",
"es.string.fixed",
"es.string.fontcolor",
"es.string.fontsize",
"es.string.italics",
"es.string.link",
"es.string.small",
"es.string.strike",
"es.string.sub",
"es.string.sup",
"es.typed-array.float32-array",
"es.typed-array.float64-array",
"es.typed-array.int8-array",
"es.typed-array.int16-array",
"es.typed-array.int32-array",
"es.typed-array.uint8-array",
"es.typed-array.uint8-clamped-array",
"es.typed-array.uint16-array",
"es.typed-array.uint32-array",
"es.typed-array.copy-within",
"es.typed-array.every",
"es.typed-array.fill",
"es.typed-array.filter",
"es.typed-array.find",
"es.typed-array.find-index",
"es.typed-array.for-each",
"es.typed-array.from",
"es.typed-array.includes",
"es.typed-array.index-of",
"es.typed-array.iterator",
"es.typed-array.join",
"es.typed-array.last-index-of",
"es.typed-array.map",
"es.typed-array.of",
"es.typed-array.reduce",
"es.typed-array.reduce-right",
"es.typed-array.reverse",
"es.typed-array.set",
"es.typed-array.slice",
"es.typed-array.some",
"es.typed-array.sort",
"es.typed-array.subarray",
"es.typed-array.to-locale-string",
"es.typed-array.to-string",
"es.weak-map",
"es.weak-set",
"esnext.aggregate-error",
"esnext.array.last-index",
"esnext.array.last-item",
"esnext.composite-key",
"esnext.composite-symbol",
"esnext.global-this",
"esnext.map.delete-all",
"esnext.map.every",
"esnext.map.filter",
"esnext.map.find",
"esnext.map.find-key",
"esnext.map.from",
"esnext.map.group-by",
"esnext.map.includes",
"esnext.map.key-by",
"esnext.map.key-of",
"esnext.map.map-keys",
"esnext.map.map-values",
"esnext.map.merge",
"esnext.map.of",
"esnext.map.reduce",
"esnext.map.some",
"esnext.map.update",
"esnext.math.clamp",
"esnext.math.deg-per-rad",
"esnext.math.degrees",
"esnext.math.fscale",
"esnext.math.iaddh",
"esnext.math.imulh",
"esnext.math.isubh",
"esnext.math.rad-per-deg",
"esnext.math.radians",
"esnext.math.scale",
"esnext.math.seeded-prng",
"esnext.math.signbit",
"esnext.math.umulh",
"esnext.number.from-string",
"esnext.observable",
"esnext.promise.all-settled",
"esnext.promise.any",
"esnext.promise.try",
"esnext.reflect.define-metadata",
"esnext.reflect.delete-metadata",
"esnext.reflect.get-metadata",
"esnext.reflect.get-metadata-keys",
"esnext.reflect.get-own-metadata",
"esnext.reflect.get-own-metadata-keys",
"esnext.reflect.has-metadata",
"esnext.reflect.has-own-metadata",
"esnext.reflect.metadata",
"esnext.set.add-all",
"esnext.set.delete-all",
"esnext.set.difference",
"esnext.set.every",
"esnext.set.filter",
"esnext.set.find",
"esnext.set.from",
"esnext.set.intersection",
"esnext.set.is-disjoint-from",
"esnext.set.is-subset-of",
"esnext.set.is-superset-of",
"esnext.set.join",
"esnext.set.map",
"esnext.set.of",
"esnext.set.reduce",
"esnext.set.some",
"esnext.set.symmetric-difference",
"esnext.set.union",
"esnext.string.at",
"esnext.string.code-points",
"esnext.string.match-all",
"esnext.string.replace-all",
"esnext.symbol.dispose",
"esnext.symbol.observable",
"esnext.symbol.pattern-match",
"esnext.weak-map.delete-all",
"esnext.weak-map.from",
"esnext.weak-map.of",
"esnext.weak-set.add-all",
"esnext.weak-set.delete-all",
"esnext.weak-set.from",
"esnext.weak-set.of",
"web.dom-collections.for-each",
"web.dom-collections.iterator",
"web.immediate",
"web.queue-microtask",
"web.timers",
"web.url",
"web.url.to-json",
"web.url-search-params"
],
"3.1": [
"es.string.match-all",
"es.symbol.match-all",
"esnext.symbol.replace-all"
],
"3.2": [
"es.promise.all-settled",
"esnext.array.is-template-object",
"esnext.map.update-or-insert",
"esnext.symbol.async-dispose"
],
"3.3": [
"es.global-this",
"esnext.async-iterator.constructor",
"esnext.async-iterator.as-indexed-pairs",
"esnext.async-iterator.drop",
"esnext.async-iterator.every",
"esnext.async-iterator.filter",
"esnext.async-iterator.find",
"esnext.async-iterator.flat-map",
"esnext.async-iterator.for-each",
"esnext.async-iterator.from",
"esnext.async-iterator.map",
"esnext.async-iterator.reduce",
"esnext.async-iterator.some",
"esnext.async-iterator.take",
"esnext.async-iterator.to-array",
"esnext.iterator.constructor",
"esnext.iterator.as-indexed-pairs",
"esnext.iterator.drop",
"esnext.iterator.every",
"esnext.iterator.filter",
"esnext.iterator.find",
"esnext.iterator.flat-map",
"esnext.iterator.for-each",
"esnext.iterator.from",
"esnext.iterator.map",
"esnext.iterator.reduce",
"esnext.iterator.some",
"esnext.iterator.take",
"esnext.iterator.to-array",
"esnext.map.upsert",
"esnext.weak-map.upsert"
],
"3.4": [
"es.json.stringify"
],
"3.5": [
"esnext.object.iterate-entries",
"esnext.object.iterate-keys",
"esnext.object.iterate-values"
],
"3.6": [
"es.regexp.sticky",
"es.regexp.test"
]
}

View File

@ -1,473 +0,0 @@
{
"proposal-class-static-block": {
"chrome": "94",
"opera": "80",
"edge": "94",
"firefox": "93",
"node": "16.11"
},
"proposal-private-property-in-object": {
"chrome": "91",
"opera": "77",
"edge": "91",
"firefox": "90",
"safari": "15",
"node": "16.9",
"ios": "15",
"electron": "13.0"
},
"proposal-class-properties": {
"chrome": "74",
"opera": "62",
"edge": "79",
"firefox": "90",
"safari": "14.1",
"node": "12",
"ios": "15",
"samsung": "11",
"electron": "6.0"
},
"proposal-private-methods": {
"chrome": "84",
"opera": "70",
"edge": "84",
"firefox": "90",
"safari": "15",
"node": "14.6",
"ios": "15",
"samsung": "14",
"electron": "10.0"
},
"proposal-numeric-separator": {
"chrome": "75",
"opera": "62",
"edge": "79",
"firefox": "70",
"safari": "13",
"node": "12.5",
"ios": "13",
"samsung": "11",
"electron": "6.0"
},
"proposal-logical-assignment-operators": {
"chrome": "85",
"opera": "71",
"edge": "85",
"firefox": "79",
"safari": "14",
"node": "15",
"ios": "14",
"samsung": "14",
"electron": "10.0"
},
"proposal-nullish-coalescing-operator": {
"chrome": "80",
"opera": "67",
"edge": "80",
"firefox": "72",
"safari": "13.1",
"node": "14",
"ios": "13.4",
"samsung": "13",
"electron": "8.0"
},
"proposal-optional-chaining": {
"chrome": "91",
"opera": "77",
"edge": "91",
"firefox": "74",
"safari": "13.1",
"node": "16.9",
"ios": "13.4",
"electron": "13.0"
},
"proposal-json-strings": {
"chrome": "66",
"opera": "53",
"edge": "79",
"firefox": "62",
"safari": "12",
"node": "10",
"ios": "12",
"samsung": "9",
"electron": "3.0"
},
"proposal-optional-catch-binding": {
"chrome": "66",
"opera": "53",
"edge": "79",
"firefox": "58",
"safari": "11.1",
"node": "10",
"ios": "11.3",
"samsung": "9",
"electron": "3.0"
},
"transform-parameters": {
"chrome": "49",
"opera": "36",
"edge": "18",
"firefox": "53",
"node": "6",
"samsung": "5",
"electron": "0.37"
},
"proposal-async-generator-functions": {
"chrome": "63",
"opera": "50",
"edge": "79",
"firefox": "57",
"safari": "12",
"node": "10",
"ios": "12",
"samsung": "8",
"electron": "3.0"
},
"proposal-object-rest-spread": {
"chrome": "60",
"opera": "47",
"edge": "79",
"firefox": "55",
"safari": "11.1",
"node": "8.3",
"ios": "11.3",
"samsung": "8",
"electron": "2.0"
},
"transform-dotall-regex": {
"chrome": "62",
"opera": "49",
"edge": "79",
"firefox": "78",
"safari": "11.1",
"node": "8.10",
"ios": "11.3",
"samsung": "8",
"electron": "3.0"
},
"proposal-unicode-property-regex": {
"chrome": "64",
"opera": "51",
"edge": "79",
"firefox": "78",
"safari": "11.1",
"node": "10",
"ios": "11.3",
"samsung": "9",
"electron": "3.0"
},
"transform-named-capturing-groups-regex": {
"chrome": "64",
"opera": "51",
"edge": "79",
"firefox": "78",
"safari": "11.1",
"node": "10",
"ios": "11.3",
"samsung": "9",
"electron": "3.0"
},
"transform-async-to-generator": {
"chrome": "55",
"opera": "42",
"edge": "15",
"firefox": "52",
"safari": "11",
"node": "7.6",
"ios": "11",
"samsung": "6",
"electron": "1.6"
},
"transform-exponentiation-operator": {
"chrome": "52",
"opera": "39",
"edge": "14",
"firefox": "52",
"safari": "10.1",
"node": "7",
"ios": "10.3",
"samsung": "6",
"electron": "1.3"
},
"transform-template-literals": {
"chrome": "41",
"opera": "28",
"edge": "13",
"firefox": "34",
"safari": "13",
"node": "4",
"ios": "13",
"samsung": "3.4",
"electron": "0.21"
},
"transform-literals": {
"chrome": "44",
"opera": "31",
"edge": "12",
"firefox": "53",
"safari": "9",
"node": "4",
"ios": "9",
"samsung": "4",
"electron": "0.30"
},
"transform-function-name": {
"chrome": "51",
"opera": "38",
"edge": "79",
"firefox": "53",
"safari": "10",
"node": "6.5",
"ios": "10",
"samsung": "5",
"electron": "1.2"
},
"transform-arrow-functions": {
"chrome": "47",
"opera": "34",
"edge": "13",
"firefox": "43",
"safari": "10",
"node": "6",
"ios": "10",
"samsung": "5",
"rhino": "1.7.13",
"electron": "0.36"
},
"transform-block-scoped-functions": {
"chrome": "41",
"opera": "28",
"edge": "12",
"firefox": "46",
"safari": "10",
"node": "4",
"ie": "11",
"ios": "10",
"samsung": "3.4",
"electron": "0.21"
},
"transform-classes": {
"chrome": "46",
"opera": "33",
"edge": "13",
"firefox": "45",
"safari": "10",
"node": "5",
"ios": "10",
"samsung": "5",
"electron": "0.36"
},
"transform-object-super": {
"chrome": "46",
"opera": "33",
"edge": "13",
"firefox": "45",
"safari": "10",
"node": "5",
"ios": "10",
"samsung": "5",
"electron": "0.36"
},
"transform-shorthand-properties": {
"chrome": "43",
"opera": "30",
"edge": "12",
"firefox": "33",
"safari": "9",
"node": "4",
"ios": "9",
"samsung": "4",
"electron": "0.27"
},
"transform-duplicate-keys": {
"chrome": "42",
"opera": "29",
"edge": "12",
"firefox": "34",
"safari": "9",
"node": "4",
"ios": "9",
"samsung": "3.4",
"electron": "0.25"
},
"transform-computed-properties": {
"chrome": "44",
"opera": "31",
"edge": "12",
"firefox": "34",
"safari": "7.1",
"node": "4",
"ios": "8",
"samsung": "4",
"electron": "0.30"
},
"transform-for-of": {
"chrome": "51",
"opera": "38",
"edge": "15",
"firefox": "53",
"safari": "10",
"node": "6.5",
"ios": "10",
"samsung": "5",
"electron": "1.2"
},
"transform-sticky-regex": {
"chrome": "49",
"opera": "36",
"edge": "13",
"firefox": "3",
"safari": "10",
"node": "6",
"ios": "10",
"samsung": "5",
"electron": "0.37"
},
"transform-unicode-escapes": {
"chrome": "44",
"opera": "31",
"edge": "12",
"firefox": "53",
"safari": "9",
"node": "4",
"ios": "9",
"samsung": "4",
"electron": "0.30"
},
"transform-unicode-regex": {
"chrome": "50",
"opera": "37",
"edge": "13",
"firefox": "46",
"safari": "12",
"node": "6",
"ios": "12",
"samsung": "5",
"electron": "1.1"
},
"transform-spread": {
"chrome": "46",
"opera": "33",
"edge": "13",
"firefox": "45",
"safari": "10",
"node": "5",
"ios": "10",
"samsung": "5",
"electron": "0.36"
},
"transform-destructuring": {
"chrome": "51",
"opera": "38",
"edge": "15",
"firefox": "53",
"safari": "10",
"node": "6.5",
"ios": "10",
"samsung": "5",
"electron": "1.2"
},
"transform-block-scoping": {
"chrome": "49",
"opera": "36",
"edge": "14",
"firefox": "51",
"safari": "11",
"node": "6",
"ios": "11",
"samsung": "5",
"electron": "0.37"
},
"transform-typeof-symbol": {
"chrome": "38",
"opera": "25",
"edge": "12",
"firefox": "36",
"safari": "9",
"node": "0.12",
"ios": "9",
"samsung": "3",
"rhino": "1.7.13",
"electron": "0.20"
},
"transform-new-target": {
"chrome": "46",
"opera": "33",
"edge": "14",
"firefox": "41",
"safari": "10",
"node": "5",
"ios": "10",
"samsung": "5",
"electron": "0.36"
},
"transform-regenerator": {
"chrome": "50",
"opera": "37",
"edge": "13",
"firefox": "53",
"safari": "10",
"node": "6",
"ios": "10",
"samsung": "5",
"electron": "1.1"
},
"transform-member-expression-literals": {
"chrome": "7",
"opera": "12",
"edge": "12",
"firefox": "2",
"safari": "5.1",
"node": "0.10",
"ie": "9",
"android": "4",
"ios": "6",
"phantom": "2",
"samsung": "1",
"rhino": "1.7.13",
"electron": "0.20"
},
"transform-property-literals": {
"chrome": "7",
"opera": "12",
"edge": "12",
"firefox": "2",
"safari": "5.1",
"node": "0.10",
"ie": "9",
"android": "4",
"ios": "6",
"phantom": "2",
"samsung": "1",
"rhino": "1.7.13",
"electron": "0.20"
},
"transform-reserved-words": {
"chrome": "13",
"opera": "10.50",
"edge": "12",
"firefox": "2",
"safari": "3.1",
"node": "0.10",
"ie": "9",
"android": "4.4",
"ios": "6",
"phantom": "2",
"samsung": "1",
"rhino": "1.7.13",
"electron": "0.20"
},
"proposal-export-namespace-from": {
"chrome": "72",
"and_chr": "72",
"edge": "79",
"firefox": "80",
"and_ff": "80",
"node": "13.2",
"opera": "60",
"op_mob": "51",
"samsung": "11.0",
"android": "72",
"electron": "5.0"
}
}

View File

@ -160,13 +160,26 @@ pub enum Feature {
/// `bugfix/transform-safari-id-destructuring-collision-in-function-expression`
BugfixSafariIdDestructuringCollisionInFunctionExpression,
/// `bugfix/transform-edge-function-name`
BugfixTransformEdgeFunctionName, // TODO
/// `bugfix/transform-safari-block-shadowing`
BugfixTransformSafariBlockShadowing, // TODO
/// `bugfix/transform-safari-for-shadowing`
BugfixTransformSafariForShadowing, // TODO
/// `bugfix/transform-v8-spread-parameters-in-optional-chaining`
BugfixTransformV8SpreadParametersInOptionalChaining, // TODO
}
pub(crate) static FEATURES: Lazy<AHashMap<Feature, BrowserData<Option<Version>>>> =
Lazy::new(|| {
let map: AHashMap<Feature, BrowserData<Option<String>>> =
serde_json::from_str(include_str!("transform_data.json"))
.expect("failed to parse json");
let map: AHashMap<Feature, BrowserData<Option<String>>> = serde_json::from_str(
include_str!("../../../node_modules/@babel/compat-data/data/plugins.json"),
)
.expect("failed to parse json");
map.into_iter()
.map(|(feature, version)| {
@ -180,9 +193,10 @@ pub(crate) static FEATURES: Lazy<AHashMap<Feature, BrowserData<Option<Version>>>
pub(crate) static BUGFIX_FEATURES: Lazy<AHashMap<Feature, BrowserData<Option<Version>>>> =
Lazy::new(|| {
let map: AHashMap<Feature, BrowserData<Option<String>>> =
serde_json::from_str(include_str!("transform_data_bugfixes.json"))
.expect("failed to parse json");
let map: AHashMap<Feature, BrowserData<Option<String>>> = serde_json::from_str(
include_str!("../../../node_modules/@babel/compat-data/data/plugin-bugfixes.json"),
)
.expect("failed to parse json");
FEATURES
.clone()

View File

@ -1,89 +0,0 @@
{
"transform-async-to-generator": {
"chrome": "55",
"opera": "42",
"edge": "15",
"firefox": "52",
"safari": "10.1",
"node": "7.6",
"ios": "10.3",
"samsung": "6",
"electron": "1.6"
},
"bugfix/transform-async-arrows-in-class": {
"chrome": "55",
"opera": "42",
"edge": "15",
"firefox": "52",
"safari": "11",
"node": "7.6",
"ios": "11",
"samsung": "6",
"electron": "1.6"
},
"transform-parameters": {
"chrome": "49",
"opera": "36",
"edge": "15",
"firefox": "53",
"safari": "10",
"node": "6",
"ios": "10",
"samsung": "5",
"electron": "0.37"
},
"bugfix/transform-edge-default-parameters": {
"chrome": "49",
"opera": "36",
"edge": "18",
"firefox": "52",
"safari": "10",
"node": "6",
"ios": "10",
"samsung": "5",
"electron": "0.37"
},
"transform-block-scoping": {
"chrome": "49",
"opera": "36",
"edge": "14",
"firefox": "51",
"safari": "10",
"node": "6",
"ios": "10",
"samsung": "5",
"electron": "0.37"
},
"bugfix/transform-safari-id-destructuring-collision-in-function-expression": {
"chrome": "49",
"opera": "36",
"edge": "14",
"firefox": "2",
"node": "6",
"samsung": "5",
"rhino": "1.7.13",
"electron": "0.37"
},
"transform-template-literals": {
"chrome": "41",
"opera": "28",
"edge": "13",
"firefox": "34",
"safari": "9",
"node": "4",
"ios": "9",
"samsung": "3.4",
"electron": "0.21"
},
"bugfix/transform-tagged-template-caching": {
"chrome": "41",
"opera": "28",
"edge": "12",
"firefox": "34",
"safari": "13",
"node": "4",
"ios": "13",
"samsung": "3.4",
"electron": "0.21"
}
}

View File

@ -4,6 +4,8 @@ import "core-js/modules/es.array.unscopables.flat-map.js";
import "core-js/modules/es.array.unscopables.flat.js";
import "core-js/modules/es.math.hypot.js";
import "core-js/modules/es.object.from-entries.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/esnext.aggregate-error.js";
import "core-js/modules/esnext.array.last-index.js";
import "core-js/modules/esnext.array.last-item.js";

View File

@ -48,6 +48,7 @@ import "core-js/modules/es.reflect.prevent-extensions.js";
import "core-js/modules/es.reflect.set-prototype-of.js";
import "core-js/modules/es.reflect.set.js";
import "core-js/modules/es.regexp.constructor.js";
import "core-js/modules/es.regexp.exec.js";
import "core-js/modules/es.regexp.flags.js";
import "core-js/modules/es.regexp.to-string.js";
import "core-js/modules/es.set.js";
@ -80,7 +81,10 @@ import "core-js/modules/es.typed-array.includes.js";
import "core-js/modules/es.typed-array.int16-array.js";
import "core-js/modules/es.typed-array.int32-array.js";
import "core-js/modules/es.typed-array.int8-array.js";
import "core-js/modules/es.typed-array.iterator.js";
import "core-js/modules/es.typed-array.of.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/es.typed-array.to-string.js";
import "core-js/modules/es.typed-array.uint16-array.js";
import "core-js/modules/es.typed-array.uint32-array.js";

View File

@ -33,6 +33,8 @@ import "core-js/modules/es.object.values.js";
import "core-js/modules/es.promise.finally.js";
import "core-js/modules/es.promise.js";
import "core-js/modules/es.regexp.constructor.js";
import "core-js/modules/es.regexp.exec.js";
import "core-js/modules/es.regexp.flags.js";
import "core-js/modules/es.regexp.to-string.js";
import "core-js/modules/es.set.js";
import "core-js/modules/es.string.ends-with.js";
@ -61,7 +63,10 @@ import "core-js/modules/es.typed-array.from.js";
import "core-js/modules/es.typed-array.int16-array.js";
import "core-js/modules/es.typed-array.int32-array.js";
import "core-js/modules/es.typed-array.int8-array.js";
import "core-js/modules/es.typed-array.iterator.js";
import "core-js/modules/es.typed-array.of.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/es.typed-array.to-string.js";
import "core-js/modules/es.typed-array.uint16-array.js";
import "core-js/modules/es.typed-array.uint32-array.js";

View File

@ -2,6 +2,7 @@ import "core-js/modules/es.array.flat-map.js";
import "core-js/modules/es.array.flat.js";
import "core-js/modules/es.array.reduce-right.js";
import "core-js/modules/es.array.reduce.js";
import "core-js/modules/es.array.sort.js";
import "core-js/modules/es.array.unscopables.flat-map.js";
import "core-js/modules/es.array.unscopables.flat.js";
import "core-js/modules/es.math.hypot.js";
@ -9,6 +10,8 @@ import "core-js/modules/es.object.from-entries.js";
import "core-js/modules/es.promise.finally.js";
import "core-js/modules/es.promise.js";
import "core-js/modules/es.symbol.description.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/web.immediate.js";
import "core-js/modules/web.queue-microtask.js";
import "core-js/modules/web.url-search-params.js";

View File

@ -4,6 +4,8 @@ import "core-js/modules/es.array.unscopables.flat-map.js";
import "core-js/modules/es.array.unscopables.flat.js";
import "core-js/modules/es.math.hypot.js";
import "core-js/modules/es.object.from-entries.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/web.immediate.js";
import 'regenerator-runtime/runtime';
const foo = {

View File

@ -14,11 +14,16 @@ import "core-js/modules/es.object.lookup-getter.js";
import "core-js/modules/es.object.lookup-setter.js";
import "core-js/modules/es.promise.finally.js";
import "core-js/modules/es.promise.js";
import "core-js/modules/es.regexp.constructor.js";
import "core-js/modules/es.regexp.exec.js";
import "core-js/modules/es.regexp.flags.js";
import "core-js/modules/es.string.replace.js";
import "core-js/modules/es.string.trim-end.js";
import "core-js/modules/es.string.trim-start.js";
import "core-js/modules/es.symbol.async-iterator.js";
import "core-js/modules/es.symbol.description.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/web.dom-collections.iterator.js";
import "core-js/modules/web.immediate.js";
import "core-js/modules/web.queue-microtask.js";

View File

@ -14,6 +14,9 @@ import "core-js/modules/es.object.lookup-getter.js";
import "core-js/modules/es.object.lookup-setter.js";
import "core-js/modules/es.promise.finally.js";
import "core-js/modules/es.promise.js";
import "core-js/modules/es.regexp.constructor.js";
import "core-js/modules/es.regexp.exec.js";
import "core-js/modules/es.regexp.flags.js";
import "core-js/modules/es.string.pad-end.js";
import "core-js/modules/es.string.pad-start.js";
import "core-js/modules/es.string.replace.js";
@ -22,6 +25,8 @@ import "core-js/modules/es.string.trim-start.js";
import "core-js/modules/es.string.trim.js";
import "core-js/modules/es.symbol.async-iterator.js";
import "core-js/modules/es.symbol.description.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/web.dom-collections.for-each.js";
import "core-js/modules/web.dom-collections.iterator.js";
import "core-js/modules/web.immediate.js";

View File

@ -4,6 +4,8 @@ import "core-js/modules/es.array.unscopables.flat-map.js";
import "core-js/modules/es.array.unscopables.flat.js";
import "core-js/modules/es.math.hypot.js";
import "core-js/modules/es.object.from-entries.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/esnext.aggregate-error.js";
import "core-js/modules/esnext.array.last-index.js";
import "core-js/modules/esnext.array.last-item.js";

View File

@ -2,8 +2,10 @@ import "core-js/modules/es.array.from.js";
import "core-js/modules/es.array.iterator.js";
import "core-js/modules/es.object.from-entries.js";
import "core-js/modules/es.object.to-string.js";
import "core-js/modules/es.regexp.exec.js";
import "core-js/modules/es.set.js";
import "core-js/modules/es.string.iterator.js";
import "core-js/modules/es.string.replace.js";
import "core-js/modules/esnext.set.add-all.js";
import "core-js/modules/esnext.set.delete-all.js";
import "core-js/modules/esnext.set.difference.js";

View File

@ -1,3 +1,4 @@
import "core-js/modules/es.map.js";
import "core-js/modules/esnext.aggregate-error.js";
import "core-js/modules/esnext.array.last-index.js";
import "core-js/modules/esnext.array.last-item.js";

View File

@ -1,3 +1,4 @@
import "core-js/modules/es.map.js";
import "core-js/modules/esnext.aggregate-error.js";
import "core-js/modules/esnext.array.last-index.js";
import "core-js/modules/esnext.array.last-item.js";

View File

@ -14,6 +14,7 @@ import "core-js/modules/es.array.join.js";
import "core-js/modules/es.array.map.js";
import "core-js/modules/es.array.of.js";
import "core-js/modules/es.array.slice.js";
import "core-js/modules/es.array.sort.js";
import "core-js/modules/es.array.species.js";
import "core-js/modules/es.array.splice.js";
import "core-js/modules/es.array.unscopables.flat-map.js";

View File

@ -16,6 +16,7 @@ import "core-js/modules/es.array.join.js";
import "core-js/modules/es.array.map.js";
import "core-js/modules/es.array.of.js";
import "core-js/modules/es.array.slice.js";
import "core-js/modules/es.array.sort.js";
import "core-js/modules/es.array.species.js";
import "core-js/modules/es.array.splice.js";
import "core-js/modules/es.array.unscopables.flat-map.js";

View File

@ -14,6 +14,9 @@ import "core-js/modules/es.object.lookup-getter.js";
import "core-js/modules/es.object.lookup-setter.js";
import "core-js/modules/es.promise.finally.js";
import "core-js/modules/es.promise.js";
import "core-js/modules/es.regexp.constructor.js";
import "core-js/modules/es.regexp.exec.js";
import "core-js/modules/es.regexp.flags.js";
import "core-js/modules/es.string.pad-end.js";
import "core-js/modules/es.string.pad-start.js";
import "core-js/modules/es.string.replace.js";
@ -22,6 +25,8 @@ import "core-js/modules/es.string.trim-start.js";
import "core-js/modules/es.string.trim.js";
import "core-js/modules/es.symbol.async-iterator.js";
import "core-js/modules/es.symbol.description.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/web.dom-collections.for-each.js";
import "core-js/modules/web.dom-collections.iterator.js";
import "core-js/modules/web.immediate.js";

View File

@ -1,9 +1,12 @@
import "core-js/modules/es.array.flat-map.js";
import "core-js/modules/es.array.flat.js";
import "core-js/modules/es.array.sort.js";
import "core-js/modules/es.array.unscopables.flat-map.js";
import "core-js/modules/es.array.unscopables.flat.js";
import "core-js/modules/es.math.hypot.js";
import "core-js/modules/es.object.from-entries.js";
import "core-js/modules/es.symbol.description.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/web.queue-microtask.js";
import 'regenerator-runtime/runtime';

View File

@ -2,5 +2,7 @@ import "core-js/modules/es.array.unscopables.flat-map.js";
import "core-js/modules/es.array.unscopables.flat.js";
import "core-js/modules/es.math.hypot.js";
import "core-js/modules/es.object.from-entries.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/web.queue-microtask.js";
import 'regenerator-runtime/runtime';

View File

@ -14,6 +14,9 @@ import "core-js/modules/es.object.lookup-getter.js";
import "core-js/modules/es.object.lookup-setter.js";
import "core-js/modules/es.promise.finally.js";
import "core-js/modules/es.promise.js";
import "core-js/modules/es.regexp.constructor.js";
import "core-js/modules/es.regexp.exec.js";
import "core-js/modules/es.regexp.flags.js";
import "core-js/modules/es.string.pad-end.js";
import "core-js/modules/es.string.pad-start.js";
import "core-js/modules/es.string.replace.js";
@ -22,6 +25,8 @@ import "core-js/modules/es.string.trim-start.js";
import "core-js/modules/es.string.trim.js";
import "core-js/modules/es.symbol.async-iterator.js";
import "core-js/modules/es.symbol.description.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/web.dom-collections.for-each.js";
import "core-js/modules/web.dom-collections.iterator.js";
import "core-js/modules/web.immediate.js";

View File

@ -12,6 +12,9 @@ import "core-js/modules/es.object.lookup-getter.js";
import "core-js/modules/es.object.lookup-setter.js";
import "core-js/modules/es.promise.finally.js";
import "core-js/modules/es.promise.js";
import "core-js/modules/es.regexp.constructor.js";
import "core-js/modules/es.regexp.exec.js";
import "core-js/modules/es.regexp.flags.js";
import "core-js/modules/es.string.pad-end.js";
import "core-js/modules/es.string.pad-start.js";
import "core-js/modules/es.string.replace.js";
@ -20,6 +23,8 @@ import "core-js/modules/es.string.trim-start.js";
import "core-js/modules/es.string.trim.js";
import "core-js/modules/es.symbol.async-iterator.js";
import "core-js/modules/es.symbol.description.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/web.queue-microtask.js";
import "core-js/modules/web.url-search-params.js";
import "core-js/modules/web.url.js";

View File

@ -4,5 +4,7 @@ import "core-js/modules/es.array.unscopables.flat-map.js";
import "core-js/modules/es.array.unscopables.flat.js";
import "core-js/modules/es.math.hypot.js";
import "core-js/modules/es.object.from-entries.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/web.immediate.js";
import 'regenerator-runtime/runtime';

View File

@ -3,16 +3,21 @@ import "core-js/modules/es.array.flat.js";
import "core-js/modules/es.array.iterator.js";
import "core-js/modules/es.array.reduce-right.js";
import "core-js/modules/es.array.reduce.js";
import "core-js/modules/es.array.sort.js";
import "core-js/modules/es.array.unscopables.flat-map.js";
import "core-js/modules/es.array.unscopables.flat.js";
import "core-js/modules/es.math.hypot.js";
import "core-js/modules/es.object.from-entries.js";
import "core-js/modules/es.promise.finally.js";
import "core-js/modules/es.promise.js";
import "core-js/modules/es.regexp.constructor.js";
import "core-js/modules/es.regexp.exec.js";
import "core-js/modules/es.string.replace.js";
import "core-js/modules/es.string.trim-end.js";
import "core-js/modules/es.string.trim-start.js";
import "core-js/modules/es.symbol.description.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/web.dom-collections.iterator.js";
import "core-js/modules/web.immediate.js";
import "core-js/modules/web.queue-microtask.js";

View File

@ -3,16 +3,21 @@ import "core-js/modules/es.array.flat.js";
import "core-js/modules/es.array.iterator.js";
import "core-js/modules/es.array.reduce-right.js";
import "core-js/modules/es.array.reduce.js";
import "core-js/modules/es.array.sort.js";
import "core-js/modules/es.array.unscopables.flat-map.js";
import "core-js/modules/es.array.unscopables.flat.js";
import "core-js/modules/es.math.hypot.js";
import "core-js/modules/es.object.from-entries.js";
import "core-js/modules/es.promise.finally.js";
import "core-js/modules/es.promise.js";
import "core-js/modules/es.regexp.constructor.js";
import "core-js/modules/es.regexp.exec.js";
import "core-js/modules/es.string.replace.js";
import "core-js/modules/es.string.trim-end.js";
import "core-js/modules/es.string.trim-start.js";
import "core-js/modules/es.symbol.description.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/web.queue-microtask.js";
import "core-js/modules/web.url-search-params.js";
import "core-js/modules/web.url.js";

View File

@ -15,6 +15,9 @@ import "core-js/modules/es.object.lookup-getter.js";
import "core-js/modules/es.object.lookup-setter.js";
import "core-js/modules/es.promise.finally.js";
import "core-js/modules/es.promise.js";
import "core-js/modules/es.regexp.constructor.js";
import "core-js/modules/es.regexp.exec.js";
import "core-js/modules/es.regexp.flags.js";
import "core-js/modules/es.string.pad-end.js";
import "core-js/modules/es.string.replace.js";
import "core-js/modules/es.string.trim-end.js";
@ -22,6 +25,8 @@ import "core-js/modules/es.string.trim-start.js";
import "core-js/modules/es.string.trim.js";
import "core-js/modules/es.symbol.async-iterator.js";
import "core-js/modules/es.symbol.description.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/web.dom-collections.for-each.js";
import "core-js/modules/web.dom-collections.iterator.js";
import "core-js/modules/web.immediate.js";

View File

@ -14,6 +14,9 @@ import "core-js/modules/es.object.lookup-getter.js";
import "core-js/modules/es.object.lookup-setter.js";
import "core-js/modules/es.promise.finally.js";
import "core-js/modules/es.promise.js";
import "core-js/modules/es.regexp.constructor.js";
import "core-js/modules/es.regexp.exec.js";
import "core-js/modules/es.regexp.flags.js";
import "core-js/modules/es.string.pad-end.js";
import "core-js/modules/es.string.pad-start.js";
import "core-js/modules/es.string.replace.js";
@ -22,6 +25,8 @@ import "core-js/modules/es.string.trim-start.js";
import "core-js/modules/es.string.trim.js";
import "core-js/modules/es.symbol.async-iterator.js";
import "core-js/modules/es.symbol.description.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/web.dom-collections.for-each.js";
import "core-js/modules/web.dom-collections.iterator.js";
import "core-js/modules/web.immediate.js";

View File

@ -15,6 +15,9 @@ import "core-js/modules/es.object.lookup-getter.js";
import "core-js/modules/es.object.lookup-setter.js";
import "core-js/modules/es.promise.finally.js";
import "core-js/modules/es.promise.js";
import "core-js/modules/es.regexp.constructor.js";
import "core-js/modules/es.regexp.exec.js";
import "core-js/modules/es.regexp.flags.js";
import "core-js/modules/es.set.js";
import "core-js/modules/es.string.pad-end.js";
import "core-js/modules/es.string.pad-start.js";
@ -24,6 +27,8 @@ import "core-js/modules/es.string.trim-start.js";
import "core-js/modules/es.string.trim.js";
import "core-js/modules/es.symbol.async-iterator.js";
import "core-js/modules/es.symbol.description.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/web.dom-collections.for-each.js";
import "core-js/modules/web.dom-collections.iterator.js";
import "core-js/modules/web.immediate.js";

View File

@ -2,5 +2,7 @@ import "core-js/modules/es.array.iterator.js";
import "core-js/modules/es.object.to-string.js";
import "core-js/modules/es.typed-array.includes.js";
import "core-js/modules/es.typed-array.int8-array.js";
import "core-js/modules/es.typed-array.set.js";
import "core-js/modules/es.typed-array.sort.js";
import "core-js/modules/es.typed-array.to-locale-string.js";
new Int8Array(1);

View File

@ -63,7 +63,7 @@
"version": "napi version -p scripts/npm"
},
"devDependencies": {
"@babel/compat-data": "^7.16.4",
"@babel/compat-data": "^7.17.0",
"@babel/core": "^7.13.16",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-decorators": "^7.13.15",
@ -83,6 +83,7 @@
"benchmark": "^2.1.4",
"class-validator": "^0.13.1",
"core-js": "^2.6.11",
"core-js-compat": "^3.21.1",
"cross-env": "^7.0.3",
"cspell": "^5.12.3",
"expect": "^27.4.2",
@ -107,18 +108,18 @@
"url": "https://opencollective.com/swc"
},
"optionalDependencies": {
"@swc/core-win32-x64-msvc": "1.2.146",
"@swc/core-android-arm-eabi": "1.2.146",
"@swc/core-android-arm64": "1.2.146",
"@swc/core-darwin-arm64": "1.2.146",
"@swc/core-darwin-x64": "1.2.146",
"@swc/core-freebsd-x64": "1.2.146",
"@swc/core-linux-arm-gnueabihf": "1.2.146",
"@swc/core-linux-arm64-gnu": "1.2.146",
"@swc/core-linux-arm64-musl": "1.2.146",
"@swc/core-linux-x64-gnu": "1.2.146",
"@swc/core-linux-x64-musl": "1.2.146",
"@swc/core-freebsd-x64": "1.2.146",
"@swc/core-win32-ia32-msvc": "1.2.146",
"@swc/core-linux-arm64-gnu": "1.2.146",
"@swc/core-linux-arm-gnueabihf": "1.2.146",
"@swc/core-darwin-arm64": "1.2.146",
"@swc/core-android-arm64": "1.2.146",
"@swc/core-linux-arm64-musl": "1.2.146",
"@swc/core-win32-arm64-msvc": "1.2.146",
"@swc/core-android-arm-eabi": "1.2.146"
"@swc/core-win32-ia32-msvc": "1.2.146",
"@swc/core-win32-x64-msvc": "1.2.146"
}
}

View File

@ -21,10 +21,10 @@
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.14.9.tgz#ac7996ceaafcf8f410119c8af0d1db4cf914a210"
integrity sha512-p3QjZmMGHDGdpcwEYYWu7i7oJShJvtgMjJeb0W95PPhSm++3lm8YXYOh45Y6iCN9PkZLTZ7CIX5nFrp7pw7TXw==
"@babel/compat-data@^7.16.4":
version "7.16.4"
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.16.4.tgz#081d6bbc336ec5c2435c6346b2ae1fb98b5ac68e"
integrity sha512-1o/jo7D+kC9ZjHX5v+EHrdjl3PhxMrLSOTGsOdHJ+KL8HCaEK6ehrVL2RS6oHDZp+L7xLirLrPmQtEng769J/Q==
"@babel/compat-data@^7.17.0":
version "7.17.0"
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.17.0.tgz#86850b8597ea6962089770952075dcaabb8dba34"
integrity sha512-392byTlpGWXMv4FbyWw3sAZ/FrW/DrwqLGXpy0mbyNe9Taqv1mg9yON5/o0cnr8XYCkFTZbC1eV+c+LAROgrng==
"@babel/core@^7.1.0", "@babel/core@^7.13.16", "@babel/core@^7.7.2", "@babel/core@^7.7.5":
version "7.14.8"
@ -1896,6 +1896,17 @@ browserslist@^4.16.6:
escalade "^3.1.1"
node-releases "^1.1.71"
browserslist@^4.19.1:
version "4.20.0"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.20.0.tgz#35951e3541078c125d36df76056e94738a52ebe9"
integrity sha512-bnpOoa+DownbciXj0jVGENf8VYQnE2LNWomhYuCsMmmx9Jd9lwq0WXODuwpSsp8AVdKM2/HorrzxAfbKvWTByQ==
dependencies:
caniuse-lite "^1.0.30001313"
electron-to-chromium "^1.4.76"
escalade "^3.1.1"
node-releases "^2.0.2"
picocolors "^1.0.0"
bser@2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05"
@ -1941,6 +1952,11 @@ caniuse-lite@^1.0.30001219:
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001248.tgz#26ab45e340f155ea5da2920dadb76a533cb8ebce"
integrity sha512-NwlQbJkxUFJ8nMErnGtT0QTM2TJ33xgz4KXJSMIrjXIbDVdaYueGyjOrLKRtJC+rTiWfi6j5cnZN1NBiSBJGNw==
caniuse-lite@^1.0.30001313:
version "1.0.30001314"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001314.tgz#65c7f9fb7e4594fca0a333bec1d8939662377596"
integrity sha512-0zaSO+TnCHtHJIbpLroX7nsD+vYuOVjl3uzFbJO1wMVbuveJA0RK2WcQA9ZUIOiO0/ArMiMgHJLxfEZhQiC0kw==
chalk@^2.0.0:
version "2.4.2"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
@ -2113,6 +2129,14 @@ core-js-compat@^3.14.0, core-js-compat@^3.16.0:
browserslist "^4.16.6"
semver "7.0.0"
core-js-compat@^3.21.1:
version "3.21.1"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.21.1.tgz#cac369f67c8d134ff8f9bd1623e3bc2c42068c82"
integrity sha512-gbgX5AUvMb8gwxC7FLVWYT7Kkgu/y7+h/h1X43yJkNqhlK2fuYyQimqvKGNZFAY6CKii/GFKJ2cp/1/42TN36g==
dependencies:
browserslist "^4.19.1"
semver "7.0.0"
core-js@^2.6.11:
version "2.6.12"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec"
@ -2349,6 +2373,11 @@ electron-to-chromium@^1.3.723:
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.792.tgz#791b0d8fcf7411885d086193fb49aaef0c1594ca"
integrity sha512-RM2O2xrNarM7Cs+XF/OE2qX/aBROyOZqqgP+8FXMXSuWuUqCfUUzg7NytQrzZU3aSqk1Qq6zqnVkJsbfMkIatg==
electron-to-chromium@^1.4.76:
version "1.4.78"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.78.tgz#7a1cf853efafde2c4cf6e86facf3e5792d3541a5"
integrity sha512-o61+D/Lx7j/E0LIin/efOqeHpXhwi1TaQco9vUcRmr91m25SfZY6L5hWJDv/r+6kNjboFKgBw1LbfM0lbhuK6Q==
emittery@^0.8.1:
version "0.8.1"
resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.8.1.tgz#bb23cc86d03b30aa75a7f734819dee2e1ba70860"
@ -3686,6 +3715,11 @@ node-releases@^1.1.71:
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.73.tgz#dd4e81ddd5277ff846b80b52bb40c49edf7a7b20"
integrity sha512-uW7fodD6pyW2FZNZnp/Z3hvWKeEW1Y8R1+1CnErE8cXFXzl5blBOoVB41CvMer6P6Q0S5FXDwcHgFd1Wj0U9zg==
node-releases@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.2.tgz#7139fe71e2f4f11b47d4d2986aaf8c48699e0c01"
integrity sha512-XxYDdcQ6eKqp/YjI+tb2C5WM2LgjnZrfYg4vgQt49EK268b6gYCHsBLrK2qvJo4FmCtqmKezb0WZFK4fkrZNsg==
normalize-path@^3.0.0, normalize-path@~3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
@ -3841,6 +3875,11 @@ path-type@^4.0.0:
resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
picocolors@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3:
version "2.3.0"
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972"