Repository: swc-project/swc (rust)

Issue:
import wrong core-js module
### Describe the bug




there's no core-js module `es.symbol.async-dispose` but `esnext.symbol.async-dispose`

maybe also have others with wrong path

### Input code

```typescript
Symbol.asyncDispose
```


### Config

```json
{
  "jsc": {
    "parser": {
      "syntax": "typescript",
      "tsx": false
    },
    "target": "es2018",
    "loose": false,
    "minify": {
      "compress": false,
      "mangle": false
    },
    "externalHelpers":false
  },
  "module": {
    "type": "es6"
  },
  "minify": false,
  "isModule": true,
  "env": {
    "mode": "usage",
    "coreJs": "3.29"
  }
}
```


### Playground link

https://play.swc.rs/?version=1.3.66&code=H4sIAAAAAAAAA52STW%2BDMAyG7%2F0VLocKpArtDOK2nSdtu01TFRKjZssSlA9aVPHfBwlQ1A9tWi5Bzmv7MX7xWCttoXKSWq4k7HaEsUduamVIKfAFjXKaYoyy2UJDhMMtENNKmsBpBcAriH0U1kUB0gkBmw2cI43iDB6CNqhtW6OqFpJIlZ9IbZSA3Wt1AIkHeOtFT1orHUfP%2FhXwWPcXsjRKcl%2BrIRqY58R8Lr4gC2cIrl%2Fb71KJ1D%2BG0fBOsxtK4AakssCw4nLRfzhjfyjCOO830j%2BCupsR55yrv3PJy%2F6Cyv5Nye4AjguasvyKJnv8siRPMHtnhui9kxpL6FdaO7OPT4Ejm%2Bw0dsqmj9FgWbig81UGPhTDoJdrvqo%2BZlvdG%2BycrNE6LUPPfNX9AIz2hMn4AgAA&config=H4sIAAAAAAAAA21PXQrCMAx%2B9xQjzyI6QdQTiOAhSs1GpWtL0snG2N1tu3VT8C358v1l2BQFvFjCtRjCGBYniJGWPSDcGy%2B6gIDvHbIk5Txs89VzPFVCMyZonC7gBdXoowq53B%2FOswK0tYxZMWONMqrqvzOlbRwh8y8xUoWpNf5NxM4jGaFvqB1SkGZKIkBjn21Szo%2FGZ6Z6J1hJucmSCoofWempnTA079UoGCejlkWN%2BU1pCe%2BxPhx35SUFbMYPMjOtfW4BAAA%3D

### Expected behavior

correct core-js module path

### Actual behavior

_No response_

### Version

1.3.66

### Additional context

_No response_

Pull request description:
feat(es/preset-env): Update compat data
**Description:**


**Related issue:**

 - Closes #7629.

Patch:
diff --git a/crates/swc_ecma_preset_env/src/corejs3/data.rs b/crates/swc_ecma_preset_env/src/corejs3/data.rs
index ce946c2ae5..9ae2cf2a09 100644
--- a/crates/swc_ecma_preset_env/src/corejs3/data.rs
+++ b/crates/swc_ecma_preset_env/src/corejs3/data.rs
@@ -768,7 +768,7 @@ pub static STATIC_PROPERTIES: DataMap<DataMap<&[&str]>> = data_map!(Map {
     },
 
     Symbol: Map {
-        asyncDispose: ["es.symbol.async-dispose"],
+        asyncDispose: ["esnext.symbol.async-dispose"],
         asyncIterator: ["es.symbol.async-iterator"],
         dispose: ["esnext.symbol.dispose"],
         for: ["es.symbol"],
diff --git a/package.json b/package.json
index 7fd58daa2d..ace167be98 100644
--- a/package.json
+++ b/package.json
@@ -80,7 +80,7 @@
         ]
     },
     "devDependencies": {
-        "@babel/compat-data": "^7.17.0",
+        "@babel/compat-data": "^7.22.6",
         "@babel/core": "^7.13.16",
         "@babel/generator": "^7.18.13",
         "@babel/plugin-proposal-class-properties": "^7.13.0",
@@ -106,7 +106,7 @@
         "bootstrap": "^5.2.1",
         "class-validator": "^0.13.1",
         "core-js": "^2.6.11",
-        "core-js-compat": "^3.21.1",
+        "core-js-compat": "^3.31.0",
         "cross-env": "^7.0.3",
         "cspell": "^5.12.3",
         "expect": "^27.4.2",
diff --git a/yarn.lock b/yarn.lock
index 5fafdaee4b..c263a98c34 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -24,13 +24,20 @@ __metadata:
   languageName: node
   linkType: hard
 
-"@babel/compat-data@npm:^7.17.0, @babel/compat-data@npm:^7.17.7, @babel/compat-data@npm:^7.20.5, @babel/compat-data@npm:^7.22.0, @babel/compat-data@npm:^7.22.3":
+"@babel/compat-data@npm:^7.17.7, @babel/compat-data@npm:^7.20.5, @babel/compat-data@npm:^7.22.0, @babel/compat-data@npm:^7.22.3":
   version: 7.22.3
   resolution: "@babel/compat-data@npm:7.22.3"
   checksum: eb001646f41459f42ccb0d39ee8bb3c3c495bc297234817044c0002689c625e3159a6678c53fd31bd98cf21f31472b73506f350fc6906e3bdfa49cb706e2af8d
   languageName: node
   linkType: hard
 
+"@babel/compat-data@npm:^7.22.6":
+  version: 7.22.6
+  resolution: "@babel/compat-data@npm:7.22.6"
+  checksum: b88631143a2ebdb75e5bac47984e950983294f1739c2133f32569c6f2fcee85f83634bb6cf4378afb44fa8eb7877d11e48811d1e6a52afa161f82276ffdc3fb4
+  languageName: node
+  linkType: hard
+
 "@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3, @babel/core@npm:^7.13.16":
   version: 7.22.1
   resolution: "@babel/core@npm:7.22.1"
@@ -2533,7 +2540,7 @@ __metadata:
   version: 0.0.0-use.local
   resolution: "@swc/core@workspace:."
   dependencies:
-    "@babel/compat-data": ^7.17.0
+    "@babel/compat-data": ^7.22.6
     "@babel/core": ^7.13.16
     "@babel/generator": ^7.18.13
     "@babel/plugin-proposal-class-properties": ^7.13.0
@@ -2569,7 +2576,7 @@ __metadata:
     bootstrap: ^5.2.1
     class-validator: ^0.13.1
     core-js: ^2.6.11
-    core-js-compat: ^3.21.1
+    core-js-compat: ^3.31.0
     cross-env: ^7.0.3
     cspell: ^5.12.3
     expect: ^27.4.2
@@ -3629,7 +3636,7 @@ __metadata:
   languageName: node
   linkType: hard
 
-"core-js-compat@npm:^3.21.1, core-js-compat@npm:^3.30.1, core-js-compat@npm:^3.30.2":
+"core-js-compat@npm:^3.30.1, core-js-compat@npm:^3.30.2":
   version: 3.30.2
   resolution: "core-js-compat@npm:3.30.2"
   dependencies:
@@ -3638,6 +3645,15 @@ __metadata:
   languageName: node
   linkType: hard
 
+"core-js-compat@npm:^3.31.0":
+  version: 3.31.0
+  resolution: "core-js-compat@npm:3.31.0"
+  dependencies:
+    browserslist: ^4.21.5
+  checksum: 5c76ac5e4ab39480391f93a5aef14a2cfa188cda7bd6a7b8532de1f8bc5d89099a5025b2640d2ef70a2928614792363dcbcf8bd254aa7b2e11b85aeed7ac460f
+  languageName: node
+  linkType: hard
+
 "core-js@npm:^2.6.11":
   version: 2.6.12
   resolution: "core-js@npm:2.6.12"
@@ -4325,7 +4341,7 @@ __metadata:
 
 "fsevents@patch:fsevents@^2.3.2#~builtin<compat/fsevents>, fsevents@patch:fsevents@~2.3.2#~builtin<compat/fsevents>":
   version: 2.3.2
-  resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=df0bf1"
+  resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"
   dependencies:
     node-gyp: latest
   conditions: os=darwin
@@ -6861,7 +6877,7 @@ __metadata:
 
 "resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.14.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>":
   version: 1.22.2
-  resolution: "resolve@patch:resolve@npm%3A1.22.2#~builtin<compat/resolve>::version=1.22.2&hash=c3c19d"
+  resolution: "resolve@patch:resolve@npm%3A1.22.2#~builtin<compat/resolve>::version=1.22.2&hash=07638b"
   dependencies:
     is-core-module: ^2.11.0
     path-parse: ^1.0.7
@@ -7627,11 +7643,11 @@ __metadata:
 
 "typescript@patch:typescript@^4.5.2#~builtin<compat/typescript>":
   version: 4.9.5
-  resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"
+  resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=a1c5e5"
   bin:
     tsc: bin/tsc
     tsserver: bin/tsserver
-  checksum: ab417a2f398380c90a6cf5a5f74badd17866adf57f1165617d6a551f059c3ba0a3e4da0d147b3ac5681db9ac76a303c5876394b13b3de75fdd5b1eaa06181c9d
+  checksum: 2eee5c37cad4390385db5db5a8e81470e42e8f1401b0358d7390095d6f681b410f2c4a0c496c6ff9ebd775423c7785cdace7bcdad76c7bee283df3d9718c0f20
   languageName: node
   linkType: hard
 


Test patch:
diff --git a/crates/swc/tests/fixture/issues-7xxx/7629/input/.swcrc b/crates/swc/tests/fixture/issues-7xxx/7629/input/.swcrc
new file mode 100644
index 0000000000..07acb0d9ec
--- /dev/null
+++ b/crates/swc/tests/fixture/issues-7xxx/7629/input/.swcrc
@@ -0,0 +1,24 @@
+{
+    "jsc": {
+        "parser": {
+            "syntax": "typescript",
+            "tsx": false
+        },
+        "target": "es2018",
+        "loose": false,
+        "minify": {
+            "compress": false,
+            "mangle": false
+        },
+        "externalHelpers": false
+    },
+    "module": {
+        "type": "es6"
+    },
+    "minify": false,
+    "isModule": true,
+    "env": {
+        "mode": "usage",
+        "coreJs": "3.29"
+    }
+}
\ No newline at end of file
diff --git a/crates/swc/tests/fixture/issues-7xxx/7629/input/1.js b/crates/swc/tests/fixture/issues-7xxx/7629/input/1.js
new file mode 100644
index 0000000000..faf08000bd
--- /dev/null
+++ b/crates/swc/tests/fixture/issues-7xxx/7629/input/1.js
@@ -0,0 +1,1 @@
+Symbol.asyncDispose
diff --git a/crates/swc/tests/fixture/issues-7xxx/7629/output/1.js b/crates/swc/tests/fixture/issues-7xxx/7629/output/1.js
new file mode 100644
index 0000000000..0f7f3a68ee
--- /dev/null
+++ b/crates/swc/tests/fixture/issues-7xxx/7629/output/1.js
@@ -0,0 +1,4 @@
+import "core-js/modules/es.object.to-string.js";
+import "core-js/modules/es.symbol.description.js";
+import "core-js/modules/es.symbol.js";
+Symbol.asyncDispose;