From a8a4fdf8544bd8301633815590023006e22869ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 28 Aug 2023 15:25:02 +0900 Subject: [PATCH 01/10] Update swc_core --- Cargo.toml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 69594eb8634a7..04620ba7eee30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -77,13 +77,13 @@ async-recursion = "1.0.2" # Keep consistent with preset_env_base through swc_core browserslist-rs = { version = "0.12.2" } mdxjs = { version = "0.1.14" } -modularize_imports = { version = "0.33.0" } -styled_components = { version = "0.60.0" } -styled_jsx = { version = "0.37.0" } -swc_core = { version = "0.79.55" } -swc_emotion = { version = "0.36.0" } -swc_relay = { version = "0.8.0" } -testing = { version = "0.33.21" } +modularize_imports = { version = "0.36.0" } +styled_components = { version = "0.63.0" } +styled_jsx = { version = "0.40.0" } +swc_core = { version = "0.82.1" } +swc_emotion = { version = "0.39.0" } +swc_relay = { version = "0.11.0" } +testing = { version = "0.34.0" } auto-hash-map = { path = "crates/turbo-tasks-auto-hash-map" } node-file-trace = { path = "crates/node-file-trace", default-features = false } From 512f9f885b9a5783847b547a8c152ac268ac7116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 28 Aug 2023 15:25:40 +0900 Subject: [PATCH 02/10] cargo lockfile --- Cargo.lock | 1048 ++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 780 insertions(+), 268 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f4e95effb6edb..435e41cd107f3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -615,6 +615,15 @@ version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a" +[[package]] +name = "base64-simd" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "781dd20c3aff0bd194fe7d2a977dd92f21c173891f3a03b677359e5fa457e5d5" +dependencies = [ + "simd-abstraction", +] + [[package]] name = "better_scoped_tls" version = "0.1.1" @@ -681,9 +690,9 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.53.52" +version = "0.56.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e03769a02fbae78c9eb429cec1089cd4ccf244f18cd3a616096245f6be377ac1" +checksum = "ed713e6d422a1d213f9da791b329609b615b8e4dd9bda90b118654feb82daf66" dependencies = [ "anyhow", "console_error_panic_hook", @@ -692,10 +701,10 @@ dependencies = [ "serde", "serde-wasm-bindgen", "swc", - "swc_common", - "swc_ecma_ast", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", "swc_ecma_transforms", - "swc_ecma_visit", + "swc_ecma_visit 0.95.0", "wasm-bindgen", "wasm-bindgen-futures", ] @@ -1367,6 +1376,26 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed3d0b5ff30645a68f35ece8cea4556ca14ef8a1651455f789a099a0513532a6" +[[package]] +name = "const-str" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21077772762a1002bb421c3af42ac1725fa56066bfc53d9a55bb79905df2aaf3" +dependencies = [ + "const-str-proc-macro", +] + +[[package]] +name = "const-str-proc-macro" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e1e0fdd2e5d3041e530e1b21158aeeef8b5d0e306bc5c1e3d6cf0930d10e25a" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "const_fn" version = "0.4.9" @@ -1776,6 +1805,33 @@ dependencies = [ "typenum", ] +[[package]] +name = "cssparser" +version = "0.29.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f93d03419cb5950ccfd3daf3ff1c7a36ace64609a1a8746d493df1ca0afde0fa" +dependencies = [ + "cssparser-macros", + "dtoa-short", + "itoa", + "matches", + "phf", + "proc-macro2", + "quote", + "smallvec", + "syn 1.0.109", +] + +[[package]] +name = "cssparser-macros" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" +dependencies = [ + "quote", + "syn 2.0.25", +] + [[package]] name = "ctor" version = "0.1.26" @@ -1975,6 +2031,15 @@ version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308" +[[package]] +name = "data-url" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a30bfce702bcfa94e906ef82421f2c0e61c076ad76030c16ee5d2e9a32fe193" +dependencies = [ + "matches", +] + [[package]] name = "dav1d" version = "0.6.1" @@ -2177,6 +2242,21 @@ dependencies = [ "nom", ] +[[package]] +name = "dtoa" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcbb2bf8e87535c23f7a8a321e364ce21462d0ff10cb6407820e8e96dfff6653" + +[[package]] +name = "dtoa-short" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbaceec3c6e4211c79e7b1800fb9680527106beb2f9c51904a3210c03a448c74" +dependencies = [ + "dtoa", +] + [[package]] name = "dunce" version = "1.0.3" @@ -3880,6 +3960,41 @@ dependencies = [ "vcpkg", ] +[[package]] +name = "lightningcss" +version = "1.0.0-alpha.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04f87dd0377974affb751fedb4d394b0fce51829227ec6afe4fa7d51eeb6383b" +dependencies = [ + "ahash 0.7.6", + "bitflags 2.3.3", + "const-str", + "cssparser", + "dashmap", + "data-encoding", + "itertools", + "lazy_static", + "lightningcss-derive", + "parcel_selectors", + "parcel_sourcemap", + "paste", + "pathdiff", + "rayon", + "serde", + "smallvec", +] + +[[package]] +name = "lightningcss-derive" +version = "1.0.0-alpha.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80f9c05013e43faeef3f09a4c425f926b91a64fee540887a9857a5556b70ea5a" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "link-cplusplus" version = "1.0.8" @@ -3995,6 +4110,12 @@ dependencies = [ "regex-automata", ] +[[package]] +name = "matches" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" + [[package]] name = "matchit" version = "0.7.0" @@ -4028,7 +4149,7 @@ checksum = "334329b79f2a86b4e432a4f9911df72e4b7dff1164dfa3027bc7f91d60391d8f" dependencies = [ "markdown", "serde", - "swc_core", + "swc_core 0.79.55", ] [[package]] @@ -4264,16 +4385,16 @@ dependencies = [ [[package]] name = "modularize_imports" -version = "0.33.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fadb4910d44f493d92d99c729efc7df7c183068023347e593b6acc35e301374a" +checksum = "49e4fc8e62495ab18cee4abe93ed570cbf5433733cc8d20db8a37aa937e54721" dependencies = [ "convert_case 0.5.0", "handlebars", "once_cell", "regex", "serde", - "swc_core", + "swc_core 0.81.8", ] [[package]] @@ -4772,6 +4893,12 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "outref" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f222829ae9293e33a9f5e9f440c6760a3d450a64affe1846486b140db81c1f4" + [[package]] name = "overload" version = "0.1.1" @@ -4797,6 +4924,36 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "parcel_selectors" +version = "0.26.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b1aa68e6c4bf7a49302b9c711c880c1cc2a7dc5c5184042cc724e4124e0d95f" +dependencies = [ + "bitflags 2.3.3", + "cssparser", + "fxhash", + "log", + "phf", + "phf_codegen", + "precomputed-hash", + "smallvec", +] + +[[package]] +name = "parcel_sourcemap" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "485b74d7218068b2b7c0e3ff12fbc61ae11d57cb5d8224f525bd304c6be05bbb" +dependencies = [ + "base64-simd", + "data-url", + "rkyv", + "serde", + "serde_json", + "vlq", +] + [[package]] name = "parking" version = "2.0.0" @@ -4961,6 +5118,16 @@ dependencies = [ "proc-macro-hack", ] +[[package]] +name = "phf_codegen" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd" +dependencies = [ + "phf_generator", + "phf_shared", +] + [[package]] name = "phf_generator" version = "0.10.0" @@ -6462,6 +6629,15 @@ dependencies = [ "bindgen 0.65.1", ] +[[package]] +name = "simd-abstraction" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cadb29c57caadc51ff8346233b5cec1d240b68ce55cf1afc764818791876987" +dependencies = [ + "outref", +] + [[package]] name = "simd-adler32" version = "0.3.5" @@ -6754,26 +6930,28 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "styled_components" -version = "0.60.0" +version = "0.63.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf847274a7e6a68723a5eec6543a7197805f8a72d086250ebb8bb33a92fd0204" +checksum = "f33acc0cd6e2c5494b2f431b6ca887d825b23f5d981c0c5a9a6772cd584ba851" dependencies = [ "Inflector", "once_cell", "regex", "serde", - "swc_core", + "swc_core 0.81.8", "tracing", ] [[package]] name = "styled_jsx" -version = "0.37.0" +version = "0.40.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9250212c7494edb9d07261d449fe88f6797bd18486b791c76dceda9e12ba5f4c" +checksum = "8b70ad58e0f1f49b026d37d003b7338f35ab603dfe51e1139819319260d285b2" dependencies = [ "easy-error", - "swc_core", + "lightningcss", + "parcel_selectors", + "swc_core 0.81.8", "tracing", ] @@ -6813,11 +6991,10 @@ dependencies = [ [[package]] name = "swc" -version = "0.264.52" +version = "0.265.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee55e78284e616507c3155942c774a75f42555a6ff26c8ddc391336e145de9ea" +checksum = "f2a8ae76543a4d58d008cf30f1a40777ca954d1ca31be7b96dd8f7f4370ba480" dependencies = [ - "ahash 0.8.3", "anyhow", "base64 0.13.1", "dashmap", @@ -6837,22 +7014,22 @@ dependencies = [ "sourcemap", "swc_atoms", "swc_cached", - "swc_common", + "swc_common 0.32.0", "swc_config", - "swc_ecma_ast", - "swc_ecma_codegen", + "swc_ecma_ast 0.109.0", + "swc_ecma_codegen 0.144.0", "swc_ecma_ext_transforms", "swc_ecma_lints", "swc_ecma_loader", - "swc_ecma_minifier", - "swc_ecma_parser", + "swc_ecma_minifier 0.186.0", + "swc_ecma_parser 0.139.0", "swc_ecma_preset_env", "swc_ecma_transforms", - "swc_ecma_transforms_base", + "swc_ecma_transforms_base 0.132.0", "swc_ecma_transforms_compat", - "swc_ecma_transforms_optimization", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_transforms_optimization 0.192.0", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", "swc_error_reporters", "swc_node_comments", "swc_plugin_proxy", @@ -6871,14 +7048,14 @@ dependencies = [ "clap 4.1.11", "owo-colors", "regex", - "swc_core", + "swc_core 0.82.1", ] [[package]] name = "swc_atoms" -version = "0.5.8" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8066e17abb484602da673e2d35138ab32ce53f26368d9c92113510e1659220b" +checksum = "9f54563d7dcba626d4acfe14ed12def7ecc28e004debe3ecd2c3ee07cc47e449" dependencies = [ "bytecheck", "once_cell", @@ -6892,11 +7069,10 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.217.44" +version = "0.219.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4be469258b6b2b5ce236facb1475bd6ed01fd3519275d91346b313180760b57c" +checksum = "d06d523986030a6cddc738b71a7a88c36edb3c439419bfa1b6dbf33029953924" dependencies = [ - "ahash 0.8.3", "anyhow", "crc", "dashmap", @@ -6909,15 +7085,15 @@ dependencies = [ "rayon", "relative-path", "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_codegen", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", + "swc_ecma_codegen 0.144.0", "swc_ecma_loader", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_transforms_optimization", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_parser 0.139.0", + "swc_ecma_transforms_base 0.132.0", + "swc_ecma_transforms_optimization 0.192.0", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", "swc_fast_graph", "swc_graph_analyzer", "tracing", @@ -6942,6 +7118,33 @@ name = "swc_common" version = "0.31.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e30cd01afa791b15263fcfe8f77ecbbd020ddef659f0f58d3c7b794ad65c1738" +dependencies = [ + "ahash 0.8.3", + "ast_node", + "better_scoped_tls", + "cfg-if 1.0.0", + "either", + "from_variant", + "new_debug_unreachable", + "num-bigint", + "once_cell", + "rustc-hash", + "serde", + "siphasher", + "string_cache", + "swc_atoms", + "swc_eq_ignore_macros", + "swc_visit", + "tracing", + "unicode-width", + "url", +] + +[[package]] +name = "swc_common" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cb7fcd56655c8ae7dcf2344f0be6cbff4d9c7cb401fe3ec8e56e1de8dfe582" dependencies = [ "ahash 0.8.3", "anyhow", @@ -7001,71 +7204,105 @@ name = "swc_core" version = "0.79.55" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ee3a56f867f2fc26c13a7b3b9ef050cf408bf02b67ec4dc3befa43f72da4b90" +dependencies = [ + "swc_atoms", + "swc_common 0.31.18", + "swc_ecma_ast 0.107.4", + "swc_ecma_codegen 0.142.10", + "swc_ecma_parser 0.137.9", + "swc_ecma_transforms_base 0.130.17", + "swc_ecma_visit 0.93.4", + "vergen", +] + +[[package]] +name = "swc_core" +version = "0.81.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a71deb345d36d72f7342779cf4b9ee12fbca7de9edcd292b1594c79658822c1" +dependencies = [ + "swc_atoms", + "swc_cached", + "swc_common 0.32.0", + "swc_ecma_ast 0.108.0", + "swc_ecma_codegen 0.143.2", + "swc_ecma_minifier 0.185.6", + "swc_ecma_parser 0.138.1", + "swc_ecma_transforms_base 0.131.2", + "swc_ecma_utils 0.121.1", + "swc_ecma_visit 0.94.0", + "swc_trace_macro", + "vergen", +] + +[[package]] +name = "swc_core" +version = "0.82.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bbb45bdfa5a849236f8746953fcd01b14beb7be9de39541bdc16707f984130e" dependencies = [ "binding_macros", "swc", "swc_atoms", "swc_bundler", "swc_cached", - "swc_common", + "swc_common 0.32.0", "swc_css_ast", "swc_css_codegen", "swc_css_compat", "swc_css_modules", "swc_css_parser", - "swc_css_prefixer", "swc_css_utils", "swc_css_visit", - "swc_ecma_ast", - "swc_ecma_codegen", + "swc_ecma_ast 0.109.0", + "swc_ecma_codegen 0.144.0", "swc_ecma_loader", - "swc_ecma_minifier", - "swc_ecma_parser", + "swc_ecma_minifier 0.186.0", + "swc_ecma_parser 0.139.0", "swc_ecma_preset_env", "swc_ecma_quote_macros", - "swc_ecma_transforms_base", + "swc_ecma_transforms_base 0.132.0", "swc_ecma_transforms_module", - "swc_ecma_transforms_optimization", + "swc_ecma_transforms_optimization 0.192.0", "swc_ecma_transforms_proposal", "swc_ecma_transforms_react", "swc_ecma_transforms_testing", "swc_ecma_transforms_typescript", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", "swc_node_base", "swc_nodejs_common", "swc_plugin_proxy", "swc_plugin_runner", - "swc_trace_macro", "testing", "vergen", ] [[package]] name = "swc_css_ast" -version = "0.137.18" +version = "0.139.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec2e1600c87a641d34dc6b344f8353fa20ffedd78dc5680e1546889579cfa2c1" +checksum = "3b183736d78583b5261e690833b0e8a1d5acee4ad99142d0e3aabdec10795fc5" dependencies = [ "is-macro", "serde", "string_enum", "swc_atoms", - "swc_common", + "swc_common 0.32.0", ] [[package]] name = "swc_css_codegen" -version = "0.147.21" +version = "0.149.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00994c102c6b34b9ca5c92fd4e28ab8acabc4c8821872575e07ddc8be1a3defb" +checksum = "2c4a9af319764a33a6e7daf99a2d0f979d7f06e72e8a01947eec607cb46ddf7d" dependencies = [ "auto_impl", "bitflags 2.3.3", "rustc-hash", "serde", "swc_atoms", - "swc_common", + "swc_common 0.32.0", "swc_css_ast", "swc_css_codegen_macros", "swc_css_utils", @@ -7086,16 +7323,16 @@ dependencies = [ [[package]] name = "swc_css_compat" -version = "0.23.21" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13cc75a6f80f1e8992faf160a7af5a2dfcb0fc0b4b8c8db003919756f39e28ea" +checksum = "c506282116236260f189f8f1eddd2ed582e52aac57e184dd9812d92a80915dd9" dependencies = [ "bitflags 2.3.3", "once_cell", "serde", "serde_json", "swc_atoms", - "swc_common", + "swc_common 0.32.0", "swc_css_ast", "swc_css_utils", "swc_css_visit", @@ -7103,14 +7340,14 @@ dependencies = [ [[package]] name = "swc_css_modules" -version = "0.25.24" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abb1f7a6cd156b8d4c75a9d88dd5b072ea5a58a8e572d58524fcce0eb4dbb99c" +checksum = "d1a4caa2e6e5166ffb3e1d5400f261edad555dfdc3380371fe578ab496499ed8" dependencies = [ "rustc-hash", "serde", "swc_atoms", - "swc_common", + "swc_common 0.32.0", "swc_css_ast", "swc_css_codegen", "swc_css_parser", @@ -7119,67 +7356,83 @@ dependencies = [ [[package]] name = "swc_css_parser" -version = "0.146.21" +version = "0.148.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5179657ebe3bae23c626f2a176bc2d5e8253eb61ddefee471d7a94640f330f7" +checksum = "57c09f1b12f73eb425a38b2ecace95069e024da7bdf6c0b35ac9f0999c7d36bf" dependencies = [ "lexical", "serde", "swc_atoms", - "swc_common", + "swc_common 0.32.0", "swc_css_ast", ] [[package]] -name = "swc_css_prefixer" -version = "0.149.23" +name = "swc_css_utils" +version = "0.136.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79e204c2947181ac66d32024ba33f35fe2864559274ccf789aa0c6d01d601097" +checksum = "1f2bb1a683a9ca9106a2c93c7266221f4e9d3ab85eb3eaee4ed78ea3b4dc820b" dependencies = [ "once_cell", - "preset_env_base", "serde", "serde_json", "swc_atoms", - "swc_common", + "swc_common 0.32.0", "swc_css_ast", - "swc_css_utils", "swc_css_visit", ] [[package]] -name = "swc_css_utils" -version = "0.134.18" +name = "swc_css_visit" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f822c1606aff1942dd79e2e09abe7fe5f0a003ac2f1439cc0eb050705706bdf" +checksum = "52bde5bd8d92d993a3c69c809b51fadec06bb1c3c325fb951b79b481a74fd30a" dependencies = [ - "once_cell", "serde", - "serde_json", "swc_atoms", - "swc_common", + "swc_common 0.32.0", "swc_css_ast", - "swc_css_visit", + "swc_visit", ] [[package]] -name = "swc_css_visit" -version = "0.136.18" +name = "swc_ecma_ast" +version = "0.107.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae06f8db55b8920aa5b5362216ee8319a1edb131412fe06090892bbc99cc1237" +dependencies = [ + "bitflags 2.3.3", + "is-macro", + "num-bigint", + "scoped-tls", + "string_enum", + "swc_atoms", + "swc_common 0.31.18", + "unicode-id", +] + +[[package]] +name = "swc_ecma_ast" +version = "0.108.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "221dce6ef17ff0408a1a40240fb8e6909240ff1ac622c235db8c59a4b7ca399e" +checksum = "ea17cbb8d9814c42565e3b8fc40bb1749cb953ef97604360753d4e904bf7b3a4" dependencies = [ + "bitflags 2.3.3", + "is-macro", + "num-bigint", + "scoped-tls", "serde", + "string_enum", "swc_atoms", - "swc_common", - "swc_css_ast", - "swc_visit", + "swc_common 0.32.0", + "unicode-id", ] [[package]] name = "swc_ecma_ast" -version = "0.107.4" +version = "0.109.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae06f8db55b8920aa5b5362216ee8319a1edb131412fe06090892bbc99cc1237" +checksum = "7bc2286cedd688a68f214faa1c19bb5cceab7c9c54d0cbe3273e4c1704e38f69" dependencies = [ "bitflags 2.3.3", "bytecheck", @@ -7190,7 +7443,7 @@ dependencies = [ "serde", "string_enum", "swc_atoms", - "swc_common", + "swc_common 0.32.0", "unicode-id", ] @@ -7207,8 +7460,46 @@ dependencies = [ "serde", "sourcemap", "swc_atoms", - "swc_common", - "swc_ecma_ast", + "swc_common 0.31.18", + "swc_ecma_ast 0.107.4", + "swc_ecma_codegen_macros", + "tracing", +] + +[[package]] +name = "swc_ecma_codegen" +version = "0.143.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a21c92322844ff3c8da35bc9623165d8e2b9a48f3315816ce234b1507cac841e" +dependencies = [ + "memchr", + "num-bigint", + "once_cell", + "rustc-hash", + "serde", + "sourcemap", + "swc_atoms", + "swc_common 0.32.0", + "swc_ecma_ast 0.108.0", + "swc_ecma_codegen_macros", + "tracing", +] + +[[package]] +name = "swc_ecma_codegen" +version = "0.144.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aabe6ed186d4398ffd54c79b1fcc465b9055202de6609a04c31a3fb5f446990b" +dependencies = [ + "memchr", + "num-bigint", + "once_cell", + "rustc-hash", + "serde", + "sourcemap", + "swc_atoms", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", "swc_ecma_codegen_macros", "tracing", ] @@ -7228,25 +7519,24 @@ dependencies = [ [[package]] name = "swc_ecma_ext_transforms" -version = "0.106.13" +version = "0.108.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a119a834c5c994c6af2761b6cbf255163f2908ba2f929933143a23e184beb2b" +checksum = "57eb7bbfbd7d0b4c2d5abf6936efb16d5a228508246a19795d59c849dbff073e" dependencies = [ "phf", "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", ] [[package]] name = "swc_ecma_lints" -version = "0.85.17" +version = "0.87.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8243ab42cf97fb90e1c667a21ced8c9830046e35601c581cad7bfc57c1809fa1" +checksum = "24930c0f55ee2c91f90dd0160a1d03906da5377407dc02d627bbd35c0b6e4884" dependencies = [ - "ahash 0.8.3", "auto_impl", "dashmap", "parking_lot", @@ -7254,20 +7544,19 @@ dependencies = [ "regex", "serde", "swc_atoms", - "swc_common", + "swc_common 0.32.0", "swc_config", - "swc_ecma_ast", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_ast 0.109.0", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", ] [[package]] name = "swc_ecma_loader" -version = "0.43.20" +version = "0.44.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1e8a916c6f7bc749ba37d3e594c6ac38c7d8583bebd5d42bdf2324234eec872" +checksum = "e7d7c322462657ae27ac090a2c89f7e456c94416284a2f5ecf66c43a6a3c19d1" dependencies = [ - "ahash 0.8.3", "anyhow", "dashmap", "lru", @@ -7279,17 +7568,50 @@ dependencies = [ "serde", "serde_json", "swc_cached", - "swc_common", + "swc_common 0.32.0", "tracing", ] [[package]] name = "swc_ecma_minifier" -version = "0.184.44" +version = "0.185.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0328f57a5f5fa09de87a0b726a92a16b142c1f1889c56aeb0816f1fc37738763" +checksum = "32a12d61ac8e604dec3de8deef1590f7e275380195792cfb6436c1653f59ab02" +dependencies = [ + "arrayvec 0.7.2", + "indexmap 1.9.3", + "num-bigint", + "num_cpus", + "once_cell", + "parking_lot", + "radix_fmt", + "regex", + "rustc-hash", + "ryu-js", + "serde", + "serde_json", + "swc_atoms", + "swc_cached", + "swc_common 0.32.0", + "swc_config", + "swc_ecma_ast 0.108.0", + "swc_ecma_codegen 0.143.2", + "swc_ecma_parser 0.138.1", + "swc_ecma_transforms_base 0.131.2", + "swc_ecma_transforms_optimization 0.191.5", + "swc_ecma_usage_analyzer 0.17.1", + "swc_ecma_utils 0.121.1", + "swc_ecma_visit 0.94.0", + "swc_timer", + "tracing", +] + +[[package]] +name = "swc_ecma_minifier" +version = "0.186.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad1be307d63eb332413a87fbd8fbefcd43c4b02fa556d6f0f83949da47cb6d69" dependencies = [ - "ahash 0.8.3", "arrayvec 0.7.2", "indexmap 1.9.3", "num-bigint", @@ -7305,16 +7627,16 @@ dependencies = [ "serde_json", "swc_atoms", "swc_cached", - "swc_common", + "swc_common 0.32.0", "swc_config", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_transforms_optimization", - "swc_ecma_usage_analyzer", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_ast 0.109.0", + "swc_ecma_codegen 0.144.0", + "swc_ecma_parser 0.139.0", + "swc_ecma_transforms_base 0.132.0", + "swc_ecma_transforms_optimization 0.192.0", + "swc_ecma_usage_analyzer 0.18.0", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", "swc_timer", "tracing", ] @@ -7333,19 +7655,58 @@ dependencies = [ "smartstring", "stacker", "swc_atoms", - "swc_common", - "swc_ecma_ast", + "swc_common 0.31.18", + "swc_ecma_ast 0.107.4", + "tracing", + "typed-arena", +] + +[[package]] +name = "swc_ecma_parser" +version = "0.138.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb16763342dd3d3e4b00cc578a81a0b5fc44cd06d994a69d81bf6c2743e8703e" +dependencies = [ + "either", + "num-bigint", + "num-traits", + "serde", + "smallvec", + "smartstring", + "stacker", + "swc_atoms", + "swc_common 0.32.0", + "swc_ecma_ast 0.108.0", + "tracing", + "typed-arena", +] + +[[package]] +name = "swc_ecma_parser" +version = "0.139.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3eab46cb863bc5cd61535464e07e5b74d5f792fa26a27b9f6fd4c8daca9903b7" +dependencies = [ + "either", + "num-bigint", + "num-traits", + "serde", + "smallvec", + "smartstring", + "stacker", + "swc_atoms", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", "tracing", "typed-arena", ] [[package]] name = "swc_ecma_preset_env" -version = "0.198.32" +version = "0.200.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a137c955a99aafd2be3aef58ba68e02222d96364f7a3f99dda02f1557a45a2e" +checksum = "feab4d8e1219fa6e230a0495f162e53c6de12a5323195137d88c137095ab29b8" dependencies = [ - "ahash 0.8.3", "anyhow", "dashmap", "indexmap 1.9.3", @@ -7358,36 +7719,36 @@ dependencies = [ "st-map", "string_enum", "swc_atoms", - "swc_common", - "swc_ecma_ast", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", "swc_ecma_transforms", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", ] [[package]] name = "swc_ecma_quote_macros" -version = "0.48.9" +version = "0.50.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b13709f2df9fdc8c62b2c099caa96b4d09fd10c99b9de9a47aeb9147ad936bc" +checksum = "fdf676875aea532ce2c4cd479f89de52e0590048d71ec1790c8fe99f33788216" dependencies = [ "anyhow", "pmutil", "proc-macro2", "quote", "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_parser", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", + "swc_ecma_parser 0.139.0", "swc_macros_common", "syn 2.0.25", ] [[package]] name = "swc_ecma_testing" -version = "0.20.15" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35902aefa048253d193d7b0a4500f2bc98ed24f6607597ef967f612a2c4e45a2" +checksum = "8924413a32153210ddac17ad92e69e1533063304e549c56cf16010224d489e29" dependencies = [ "anyhow", "hex", @@ -7398,22 +7759,22 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "0.221.30" +version = "0.223.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1fa03407af8c2bc6541aea9b62022f318b2d7f7c282e782f5398868d3948a5f" +checksum = "cd8d3471fced2bfb29f0d1113df7ebc0893025bd3d6b280b4761828794baef73" dependencies = [ "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", + "swc_ecma_transforms_base 0.132.0", "swc_ecma_transforms_compat", "swc_ecma_transforms_module", - "swc_ecma_transforms_optimization", + "swc_ecma_transforms_optimization 0.192.0", "swc_ecma_transforms_proposal", "swc_ecma_transforms_react", "swc_ecma_transforms_typescript", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", ] [[package]] @@ -7421,6 +7782,52 @@ name = "swc_ecma_transforms_base" version = "0.130.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d1e31151d6637965e3538b3d6e3c8b2263c6650b09e68baa93e0ebd1985d98e7" +dependencies = [ + "better_scoped_tls", + "bitflags 2.3.3", + "indexmap 1.9.3", + "once_cell", + "phf", + "rustc-hash", + "serde", + "smallvec", + "swc_atoms", + "swc_common 0.31.18", + "swc_ecma_ast 0.107.4", + "swc_ecma_parser 0.137.9", + "swc_ecma_utils 0.120.13", + "swc_ecma_visit 0.93.4", + "tracing", +] + +[[package]] +name = "swc_ecma_transforms_base" +version = "0.131.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3bd8b793b526588e3fa83dcbf25edb6c4fb2c62251ff838b166365e74032f40" +dependencies = [ + "better_scoped_tls", + "bitflags 2.3.3", + "indexmap 1.9.3", + "once_cell", + "phf", + "rustc-hash", + "serde", + "smallvec", + "swc_atoms", + "swc_common 0.32.0", + "swc_ecma_ast 0.108.0", + "swc_ecma_parser 0.138.1", + "swc_ecma_utils 0.121.1", + "swc_ecma_visit 0.94.0", + "tracing", +] + +[[package]] +name = "swc_ecma_transforms_base" +version = "0.132.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ded027a66668b559db333bbbb6187806c50d94f9c2b92550763ae9f351876b9c" dependencies = [ "better_scoped_tls", "bitflags 2.3.3", @@ -7432,35 +7839,34 @@ dependencies = [ "serde", "smallvec", "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_parser", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", + "swc_ecma_parser 0.139.0", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", "tracing", ] [[package]] name = "swc_ecma_transforms_classes" -version = "0.119.17" +version = "0.121.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de70d9cedf6e0562cce97da5522fbc994dbe5b3a4c9e6100799d6adb77895276" +checksum = "41b21b5bc150b96a4845410325f0d24759b20c6916bdfdda34105eb4f23972a6" dependencies = [ "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", + "swc_ecma_transforms_base 0.132.0", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", ] [[package]] name = "swc_ecma_transforms_compat" -version = "0.156.24" +version = "0.158.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "785792dbb7a4a38dd4c3e3a48cdbf3a2a1fabad0c1b7cfd7367bd0d595481b8b" +checksum = "274129ba6d6afb4a56170a9fb6d8fe929e370e648dfa70639b8984caf6556987" dependencies = [ - "ahash 0.8.3", "arrayvec 0.7.2", "indexmap 1.9.3", "is-macro", @@ -7469,14 +7875,14 @@ dependencies = [ "serde", "smallvec", "swc_atoms", - "swc_common", + "swc_common 0.32.0", "swc_config", - "swc_ecma_ast", - "swc_ecma_transforms_base", + "swc_ecma_ast 0.109.0", + "swc_ecma_transforms_base 0.132.0", "swc_ecma_transforms_classes", "swc_ecma_transforms_macros", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", "swc_trace_macro", "tracing", ] @@ -7496,12 +7902,11 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_module" -version = "0.173.28" +version = "0.175.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31044586c55420a2e45324c12a3d2015c8553c4217da9c98d14883a73e569253" +checksum = "8a8aec33db3a15397df21a17f002da0c00214a542e6dceb868c81ef187669ac7" dependencies = [ "Inflector", - "ahash 0.8.3", "anyhow", "bitflags 2.3.3", "indexmap 1.9.3", @@ -7512,23 +7917,46 @@ dependencies = [ "serde", "swc_atoms", "swc_cached", - "swc_common", - "swc_ecma_ast", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", "swc_ecma_loader", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_parser 0.139.0", + "swc_ecma_transforms_base 0.132.0", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", "tracing", ] [[package]] name = "swc_ecma_transforms_optimization" -version = "0.190.30" +version = "0.191.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98b1cb99f9f8f52e61557a169c5353e09c193e95b9134d1cad6d85fbebf150d0" +checksum = "dd759f1f89ed3f69f96c7e256b203d1bb09f5a1dc61f2e5d6252a68d6d487801" +dependencies = [ + "dashmap", + "indexmap 1.9.3", + "once_cell", + "petgraph", + "rustc-hash", + "serde_json", + "swc_atoms", + "swc_common 0.32.0", + "swc_ecma_ast 0.108.0", + "swc_ecma_parser 0.138.1", + "swc_ecma_transforms_base 0.131.2", + "swc_ecma_transforms_macros", + "swc_ecma_utils 0.121.1", + "swc_ecma_visit 0.94.0", + "swc_fast_graph", + "tracing", +] + +[[package]] +name = "swc_ecma_transforms_optimization" +version = "0.192.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fe31958ce79df0647c825bb69a9270eda6f0974750be67aa11aabf5cf2bb943" dependencies = [ - "ahash 0.8.3", "dashmap", "indexmap 1.9.3", "once_cell", @@ -7537,44 +7965,43 @@ dependencies = [ "rustc-hash", "serde_json", "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_parser", - "swc_ecma_transforms_base", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", + "swc_ecma_parser 0.139.0", + "swc_ecma_transforms_base 0.132.0", "swc_ecma_transforms_macros", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", "swc_fast_graph", "tracing", ] [[package]] name = "swc_ecma_transforms_proposal" -version = "0.164.24" +version = "0.166.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11c9f454d65b9f2ede548788dd3578d7848488be391bcf0660725a55a018a6ac" +checksum = "fac6064abe38b06bf7d38e295991d30aa681b808470ef3c65551bba6e29c0dfe" dependencies = [ "either", "rustc-hash", "serde", "smallvec", "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", + "swc_ecma_transforms_base 0.132.0", "swc_ecma_transforms_classes", "swc_ecma_transforms_macros", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", ] [[package]] name = "swc_ecma_transforms_react" -version = "0.176.28" +version = "0.178.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60beed5b1334dc51ec9307429d12510f0b182c9c3d9307b21bc8444aca8e78c9" +checksum = "6e790a4538d1cc44212db7ae756203c2d41882c0171350676c77b30c2e67b551" dependencies = [ - "ahash 0.8.3", "base64 0.13.1", "dashmap", "indexmap 1.9.3", @@ -7584,21 +8011,21 @@ dependencies = [ "sha-1", "string_enum", "swc_atoms", - "swc_common", + "swc_common 0.32.0", "swc_config", - "swc_ecma_ast", - "swc_ecma_parser", - "swc_ecma_transforms_base", + "swc_ecma_ast 0.109.0", + "swc_ecma_parser 0.139.0", + "swc_ecma_transforms_base 0.132.0", "swc_ecma_transforms_macros", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", ] [[package]] name = "swc_ecma_transforms_testing" -version = "0.133.17" +version = "0.135.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d166cc3a72ce892cafc25ee9f1f27edc0785125980bac4e7fc4aad31f2b4432" +checksum = "ae4e4d3bd65d327be26020f7e03b65d362eade27961b93bb38338bd284ab6b1c" dependencies = [ "ansi_term", "anyhow", @@ -7608,48 +8035,64 @@ dependencies = [ "serde_json", "sha-1", "sourcemap", - "swc_common", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_parser", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", + "swc_ecma_codegen 0.144.0", + "swc_ecma_parser 0.139.0", "swc_ecma_testing", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_transforms_base 0.132.0", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", "tempfile", "testing", ] [[package]] name = "swc_ecma_transforms_typescript" -version = "0.180.29" +version = "0.182.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08e70b8deabd5f9a4425fa0c2e2fb60e3f15a40eedac2fecb45f35c89c2f9d32" +checksum = "5801ea5d187d43df5d385a8c542eb29bedf4f363ec6fd6cd49079a8e79287264" dependencies = [ "serde", "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", + "swc_ecma_transforms_base 0.132.0", "swc_ecma_transforms_react", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", ] [[package]] name = "swc_ecma_usage_analyzer" -version = "0.16.17" +version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7810fba16970a3fe8a537afb81590d0023b85612fbf66aea4b62a0e1a99a14e7" +checksum = "2baac67fc2ef9653ed6c649cadf96766d9a9f352be44a955fcff9b240209a03b" +dependencies = [ + "indexmap 1.9.3", + "rustc-hash", + "swc_atoms", + "swc_common 0.32.0", + "swc_ecma_ast 0.108.0", + "swc_ecma_utils 0.121.1", + "swc_ecma_visit 0.94.0", + "swc_timer", + "tracing", +] + +[[package]] +name = "swc_ecma_usage_analyzer" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1369f8a761b9a3b929eb482b8467eb0bc6f842c26aa49043409f8fafbfaf7f58" dependencies = [ - "ahash 0.8.3", "indexmap 1.9.3", "rustc-hash", "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", + "swc_ecma_utils 0.122.0", + "swc_ecma_visit 0.95.0", "swc_timer", "tracing", ] @@ -7659,6 +8102,42 @@ name = "swc_ecma_utils" version = "0.120.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3e8a73a5d66c20ed9105e5ee2bbbcfccef9d3b2b72ed2d45db3e540fccddf7b6" +dependencies = [ + "indexmap 1.9.3", + "num_cpus", + "once_cell", + "rustc-hash", + "swc_atoms", + "swc_common 0.31.18", + "swc_ecma_ast 0.107.4", + "swc_ecma_visit 0.93.4", + "tracing", + "unicode-id", +] + +[[package]] +name = "swc_ecma_utils" +version = "0.121.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8b2d3c4b6dfe2a98d1075b831a8a0fc63323d4bdb339beff77964408a3e55a7" +dependencies = [ + "indexmap 1.9.3", + "num_cpus", + "once_cell", + "rustc-hash", + "swc_atoms", + "swc_common 0.32.0", + "swc_ecma_ast 0.108.0", + "swc_ecma_visit 0.94.0", + "tracing", + "unicode-id", +] + +[[package]] +name = "swc_ecma_utils" +version = "0.122.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11006a3398ffd4693c4d3b0a1b1a5030edbdc04228159f5301120a6178144708" dependencies = [ "indexmap 1.9.3", "num_cpus", @@ -7666,9 +8145,9 @@ dependencies = [ "rayon", "rustc-hash", "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_visit", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", + "swc_ecma_visit 0.95.0", "tracing", "unicode-id", ] @@ -7678,21 +8157,49 @@ name = "swc_ecma_visit" version = "0.93.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8fb77e49a630356fe2ba77db102294fc0bbe1050e85c962f5b4aa3de06c4d51a" +dependencies = [ + "num-bigint", + "swc_atoms", + "swc_common 0.31.18", + "swc_ecma_ast 0.107.4", + "swc_visit", + "tracing", +] + +[[package]] +name = "swc_ecma_visit" +version = "0.94.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3930e7a18c12648f4cb079cd5408569db9f2caf2a8aa169d298b4b3e281ad433" +dependencies = [ + "num-bigint", + "swc_atoms", + "swc_common 0.32.0", + "swc_ecma_ast 0.108.0", + "swc_visit", + "tracing", +] + +[[package]] +name = "swc_ecma_visit" +version = "0.95.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f628ec196e76e67892441e14eef2e423a738543d32bffdabfeec20c29582117" dependencies = [ "num-bigint", "serde", "swc_atoms", - "swc_common", - "swc_ecma_ast", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", "swc_visit", "tracing", ] [[package]] name = "swc_emotion" -version = "0.36.0" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf743905cbab16c3933907dc07fa8bb6ac68682da193ea336cddbebcd6bd219f" +checksum = "cbea82d8b0d325e69563c1a4c39a82a863982b5b747a88857d8dc9e0f8819308" dependencies = [ "base64 0.13.1", "byteorder", @@ -7702,7 +8209,7 @@ dependencies = [ "regex", "serde", "sourcemap", - "swc_core", + "swc_core 0.81.8", "tracing", ] @@ -7720,38 +8227,38 @@ dependencies = [ [[package]] name = "swc_error_reporters" -version = "0.15.18" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b42b190cdaf440a894db49d50bc497fcc14fdf0f013fdaf7be2e69874cd1b5d0" +checksum = "6530d0def50c33d14064a43837b7e3c1fe8716ee6c3495a478835793caae2c97" dependencies = [ "anyhow", "miette 4.7.1", "once_cell", "parking_lot", - "swc_common", + "swc_common 0.32.0", ] [[package]] name = "swc_fast_graph" -version = "0.19.18" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11cc84ef676e0901c5a7a01394b98f5219beee0e22f746fbe2c90ee998ceda15" +checksum = "a407fff2eb5ce3bee7513bdd9531a7be0285bc1213500b6d98ad235428d94cce" dependencies = [ "indexmap 1.9.3", "petgraph", "rustc-hash", - "swc_common", + "swc_common 0.32.0", ] [[package]] name = "swc_graph_analyzer" -version = "0.20.21" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "798e25d397d7af26ba28ddc7f266955a4364a84ca8b1ce8a601d8e3c9c7dfbe9" +checksum = "90b996222612382d0d297d0315f5eedc5a830c37e62476c69774884633d31177" dependencies = [ - "ahash 0.8.3", "auto_impl", "petgraph", + "swc_common 0.32.0", "swc_fast_graph", "tracing", ] @@ -7780,14 +8287,13 @@ dependencies = [ [[package]] name = "swc_node_comments" -version = "0.18.18" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3621bf1b1ace854fbd88e6a025450acfce1e059880c21bd22db463485abd4911" +checksum = "73cee5dededc1e0d19e53dd0a41a343a43e21ed9b62c3df0fdd5801c11533bc9" dependencies = [ - "ahash 0.8.3", "dashmap", "swc_atoms", - "swc_common", + "swc_common 0.32.0", ] [[package]] @@ -7806,23 +8312,23 @@ dependencies = [ [[package]] name = "swc_plugin_proxy" -version = "0.36.4" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "995382d2e4a75e813e6c023d94cc70ef36e1cfe8a8dc3330c295550a439b52e4" +checksum = "0d3777c28430000db35867b0de49cecdc36519d27045e7d027ef041954bba846" dependencies = [ "better_scoped_tls", "rkyv", - "swc_common", - "swc_ecma_ast", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", "swc_trace_macro", "tracing", ] [[package]] name = "swc_plugin_runner" -version = "0.98.11" +version = "0.101.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cbc9b862888ed8f85b7c553eab4c4dc1b351cd90b98822935580298a5427057" +checksum = "050db3c5c80d26bcd6a375d569882fbffa505091f86b19140257fed98b515783" dependencies = [ "anyhow", "enumset", @@ -7831,8 +8337,8 @@ dependencies = [ "parking_lot", "serde", "serde_json", - "swc_common", - "swc_ecma_ast", + "swc_common 0.32.0", + "swc_ecma_ast 0.109.0", "swc_plugin_proxy", "tokio", "tracing", @@ -7844,24 +8350,24 @@ dependencies = [ [[package]] name = "swc_relay" -version = "0.8.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84156a35d2a71e325b0c0c64d5bda2ed9eeb194df49ea42a6de3793b648b413b" +checksum = "189538953e941efb03a099a6039c150b7a320781f5fb93af259b352be62fdd70" dependencies = [ "once_cell", "regex", "serde", "serde_json", - "swc_common", - "swc_core", + "swc_common 0.32.0", + "swc_core 0.81.8", "tracing", ] [[package]] name = "swc_timer" -version = "0.19.21" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4560c944a65d817fba2fbfd39a914d04b446da9bb1f1c5d74b42a28259d733df" +checksum = "95c548665c811d1c5def583d3d6ca0291e5397122c0de6362bb201cc2de8beff" dependencies = [ "tracing", ] @@ -8130,9 +8636,9 @@ dependencies = [ [[package]] name = "testing" -version = "0.33.21" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df186694fbd668f4c7c8071c5e442b0c8781c5282202724ac44dad6092f74802" +checksum = "b199c2fbfc063718d1599d6caaa67868f130c39152bb00baf9534237b1037585" dependencies = [ "ansi_term", "cargo_metadata", @@ -8141,7 +8647,7 @@ dependencies = [ "pretty_assertions", "regex", "serde_json", - "swc_common", + "swc_common 0.32.0", "swc_error_reporters", "testing_macros", "tracing", @@ -9105,7 +9611,7 @@ dependencies = [ "styled_components", "styled_jsx", "swc-ast-explorer", - "swc_core", + "swc_core 0.82.1", "swc_emotion", "swc_relay", "testing", @@ -9158,7 +9664,7 @@ dependencies = [ "serde_json", "serde_qs", "sourcemap", - "swc_core", + "swc_core 0.82.1", "turbo-tasks", "turbo-tasks-build", "turbo-tasks-fs", @@ -9269,7 +9775,7 @@ dependencies = [ "serde_json", "serde_qs", "sourcemap", - "swc_core", + "swc_core 0.82.1", "tokio", "tracing", "turbo-tasks", @@ -9304,7 +9810,7 @@ dependencies = [ "once_cell", "regex", "serde", - "swc_core", + "swc_core 0.82.1", "turbo-tasks", "turbo-tasks-build", "turbo-tasks-fs", @@ -9324,7 +9830,7 @@ dependencies = [ "serde", "serde_json", "serde_qs", - "swc_core", + "swc_core 0.82.1", "tracing", "turbo-tasks", "turbo-tasks-build", @@ -9396,7 +9902,7 @@ dependencies = [ "serde", "serde_json", "serde_qs", - "swc_core", + "swc_core 0.82.1", "tokio", "tracing", "turbo-tasks", @@ -9432,7 +9938,7 @@ dependencies = [ "serde_json", "styled_components", "styled_jsx", - "swc_core", + "swc_core 0.82.1", "swc_emotion", "swc_relay", "turbo-tasks", @@ -9449,7 +9955,7 @@ dependencies = [ "anyhow", "indoc", "serde", - "swc_core", + "swc_core 0.82.1", "turbo-tasks", "turbo-tasks-build", "turbo-tasks-fs", @@ -9573,7 +10079,7 @@ dependencies = [ name = "turbopack-swc-utils" version = "0.1.0" dependencies = [ - "swc_core", + "swc_core 0.82.1", "turbo-tasks", "turbo-tasks-build", "turbopack-core", @@ -10260,6 +10766,12 @@ dependencies = [ "tracing", ] +[[package]] +name = "vlq" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65dd7eed29412da847b0f78bcec0ac98588165988a8cfe41d4ea1d429f8ccfff" + [[package]] name = "vte" version = "0.10.1" From 2fd0eeeecef0237c7fb85fdffd73740537981b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 28 Aug 2023 21:37:21 +0900 Subject: [PATCH 03/10] Update swc_core --- Cargo.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 04620ba7eee30..3d1f5ce866125 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -77,12 +77,12 @@ async-recursion = "1.0.2" # Keep consistent with preset_env_base through swc_core browserslist-rs = { version = "0.12.2" } mdxjs = { version = "0.1.14" } -modularize_imports = { version = "0.36.0" } -styled_components = { version = "0.63.0" } -styled_jsx = { version = "0.40.0" } +modularize_imports = { version = "0.37.0" } +styled_components = { version = "0.64.0" } +styled_jsx = { version = "0.41.0" } swc_core = { version = "0.82.1" } -swc_emotion = { version = "0.39.0" } -swc_relay = { version = "0.11.0" } +swc_emotion = { version = "0.40.0" } +swc_relay = { version = "0.12.0" } testing = { version = "0.34.0" } auto-hash-map = { path = "crates/turbo-tasks-auto-hash-map" } From 95a6d1a08e272d743bfc6d926bb5bce5701986ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 28 Aug 2023 21:37:40 +0900 Subject: [PATCH 04/10] cargo lockfile --- Cargo.lock | 253 +++++------------------------------------------------ 1 file changed, 24 insertions(+), 229 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 435e41cd107f3..d51010ec67083 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4385,16 +4385,16 @@ dependencies = [ [[package]] name = "modularize_imports" -version = "0.36.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49e4fc8e62495ab18cee4abe93ed570cbf5433733cc8d20db8a37aa937e54721" +checksum = "26b96a1660a2857b51dfb91b50c5ca36690fbe3b2002bec7a4e602e7086a4b14" dependencies = [ "convert_case 0.5.0", "handlebars", "once_cell", "regex", "serde", - "swc_core 0.81.8", + "swc_core 0.82.1", ] [[package]] @@ -6930,28 +6930,28 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "styled_components" -version = "0.63.0" +version = "0.64.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f33acc0cd6e2c5494b2f431b6ca887d825b23f5d981c0c5a9a6772cd584ba851" +checksum = "dfba2853ec3b9dbbc252f51278216b005789960ef7435d147794b82928a5e210" dependencies = [ "Inflector", "once_cell", "regex", "serde", - "swc_core 0.81.8", + "swc_core 0.82.1", "tracing", ] [[package]] name = "styled_jsx" -version = "0.40.0" +version = "0.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b70ad58e0f1f49b026d37d003b7338f35ab603dfe51e1139819319260d285b2" +checksum = "41307dd2ef3c21f87bf1549d9cc78b65378f113edaa678f080898413b06b3386" dependencies = [ "easy-error", "lightningcss", "parcel_selectors", - "swc_core 0.81.8", + "swc_core 0.82.1", "tracing", ] @@ -7021,13 +7021,13 @@ dependencies = [ "swc_ecma_ext_transforms", "swc_ecma_lints", "swc_ecma_loader", - "swc_ecma_minifier 0.186.0", + "swc_ecma_minifier", "swc_ecma_parser 0.139.0", "swc_ecma_preset_env", "swc_ecma_transforms", "swc_ecma_transforms_base 0.132.0", "swc_ecma_transforms_compat", - "swc_ecma_transforms_optimization 0.192.0", + "swc_ecma_transforms_optimization", "swc_ecma_utils 0.122.0", "swc_ecma_visit 0.95.0", "swc_error_reporters", @@ -7091,7 +7091,7 @@ dependencies = [ "swc_ecma_loader", "swc_ecma_parser 0.139.0", "swc_ecma_transforms_base 0.132.0", - "swc_ecma_transforms_optimization 0.192.0", + "swc_ecma_transforms_optimization", "swc_ecma_utils 0.122.0", "swc_ecma_visit 0.95.0", "swc_fast_graph", @@ -7215,26 +7215,6 @@ dependencies = [ "vergen", ] -[[package]] -name = "swc_core" -version = "0.81.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a71deb345d36d72f7342779cf4b9ee12fbca7de9edcd292b1594c79658822c1" -dependencies = [ - "swc_atoms", - "swc_cached", - "swc_common 0.32.0", - "swc_ecma_ast 0.108.0", - "swc_ecma_codegen 0.143.2", - "swc_ecma_minifier 0.185.6", - "swc_ecma_parser 0.138.1", - "swc_ecma_transforms_base 0.131.2", - "swc_ecma_utils 0.121.1", - "swc_ecma_visit 0.94.0", - "swc_trace_macro", - "vergen", -] - [[package]] name = "swc_core" version = "0.82.1" @@ -7257,13 +7237,13 @@ dependencies = [ "swc_ecma_ast 0.109.0", "swc_ecma_codegen 0.144.0", "swc_ecma_loader", - "swc_ecma_minifier 0.186.0", + "swc_ecma_minifier", "swc_ecma_parser 0.139.0", "swc_ecma_preset_env", "swc_ecma_quote_macros", "swc_ecma_transforms_base 0.132.0", "swc_ecma_transforms_module", - "swc_ecma_transforms_optimization 0.192.0", + "swc_ecma_transforms_optimization", "swc_ecma_transforms_proposal", "swc_ecma_transforms_react", "swc_ecma_transforms_testing", @@ -7274,6 +7254,7 @@ dependencies = [ "swc_nodejs_common", "swc_plugin_proxy", "swc_plugin_runner", + "swc_trace_macro", "testing", "vergen", ] @@ -7411,23 +7392,6 @@ dependencies = [ "unicode-id", ] -[[package]] -name = "swc_ecma_ast" -version = "0.108.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea17cbb8d9814c42565e3b8fc40bb1749cb953ef97604360753d4e904bf7b3a4" -dependencies = [ - "bitflags 2.3.3", - "is-macro", - "num-bigint", - "scoped-tls", - "serde", - "string_enum", - "swc_atoms", - "swc_common 0.32.0", - "unicode-id", -] - [[package]] name = "swc_ecma_ast" version = "0.109.0" @@ -7466,25 +7430,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "swc_ecma_codegen" -version = "0.143.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a21c92322844ff3c8da35bc9623165d8e2b9a48f3315816ce234b1507cac841e" -dependencies = [ - "memchr", - "num-bigint", - "once_cell", - "rustc-hash", - "serde", - "sourcemap", - "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.108.0", - "swc_ecma_codegen_macros", - "tracing", -] - [[package]] name = "swc_ecma_codegen" version = "0.144.0" @@ -7572,40 +7517,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "swc_ecma_minifier" -version = "0.185.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32a12d61ac8e604dec3de8deef1590f7e275380195792cfb6436c1653f59ab02" -dependencies = [ - "arrayvec 0.7.2", - "indexmap 1.9.3", - "num-bigint", - "num_cpus", - "once_cell", - "parking_lot", - "radix_fmt", - "regex", - "rustc-hash", - "ryu-js", - "serde", - "serde_json", - "swc_atoms", - "swc_cached", - "swc_common 0.32.0", - "swc_config", - "swc_ecma_ast 0.108.0", - "swc_ecma_codegen 0.143.2", - "swc_ecma_parser 0.138.1", - "swc_ecma_transforms_base 0.131.2", - "swc_ecma_transforms_optimization 0.191.5", - "swc_ecma_usage_analyzer 0.17.1", - "swc_ecma_utils 0.121.1", - "swc_ecma_visit 0.94.0", - "swc_timer", - "tracing", -] - [[package]] name = "swc_ecma_minifier" version = "0.186.0" @@ -7633,8 +7544,8 @@ dependencies = [ "swc_ecma_codegen 0.144.0", "swc_ecma_parser 0.139.0", "swc_ecma_transforms_base 0.132.0", - "swc_ecma_transforms_optimization 0.192.0", - "swc_ecma_usage_analyzer 0.18.0", + "swc_ecma_transforms_optimization", + "swc_ecma_usage_analyzer", "swc_ecma_utils 0.122.0", "swc_ecma_visit 0.95.0", "swc_timer", @@ -7661,26 +7572,6 @@ dependencies = [ "typed-arena", ] -[[package]] -name = "swc_ecma_parser" -version = "0.138.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb16763342dd3d3e4b00cc578a81a0b5fc44cd06d994a69d81bf6c2743e8703e" -dependencies = [ - "either", - "num-bigint", - "num-traits", - "serde", - "smallvec", - "smartstring", - "stacker", - "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.108.0", - "tracing", - "typed-arena", -] - [[package]] name = "swc_ecma_parser" version = "0.139.0" @@ -7769,7 +7660,7 @@ dependencies = [ "swc_ecma_transforms_base 0.132.0", "swc_ecma_transforms_compat", "swc_ecma_transforms_module", - "swc_ecma_transforms_optimization 0.192.0", + "swc_ecma_transforms_optimization", "swc_ecma_transforms_proposal", "swc_ecma_transforms_react", "swc_ecma_transforms_typescript", @@ -7800,29 +7691,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "swc_ecma_transforms_base" -version = "0.131.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3bd8b793b526588e3fa83dcbf25edb6c4fb2c62251ff838b166365e74032f40" -dependencies = [ - "better_scoped_tls", - "bitflags 2.3.3", - "indexmap 1.9.3", - "once_cell", - "phf", - "rustc-hash", - "serde", - "smallvec", - "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.108.0", - "swc_ecma_parser 0.138.1", - "swc_ecma_utils 0.121.1", - "swc_ecma_visit 0.94.0", - "tracing", -] - [[package]] name = "swc_ecma_transforms_base" version = "0.132.0" @@ -7927,30 +7795,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "swc_ecma_transforms_optimization" -version = "0.191.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd759f1f89ed3f69f96c7e256b203d1bb09f5a1dc61f2e5d6252a68d6d487801" -dependencies = [ - "dashmap", - "indexmap 1.9.3", - "once_cell", - "petgraph", - "rustc-hash", - "serde_json", - "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.108.0", - "swc_ecma_parser 0.138.1", - "swc_ecma_transforms_base 0.131.2", - "swc_ecma_transforms_macros", - "swc_ecma_utils 0.121.1", - "swc_ecma_visit 0.94.0", - "swc_fast_graph", - "tracing", -] - [[package]] name = "swc_ecma_transforms_optimization" version = "0.192.0" @@ -8063,23 +7907,6 @@ dependencies = [ "swc_ecma_visit 0.95.0", ] -[[package]] -name = "swc_ecma_usage_analyzer" -version = "0.17.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2baac67fc2ef9653ed6c649cadf96766d9a9f352be44a955fcff9b240209a03b" -dependencies = [ - "indexmap 1.9.3", - "rustc-hash", - "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.108.0", - "swc_ecma_utils 0.121.1", - "swc_ecma_visit 0.94.0", - "swc_timer", - "tracing", -] - [[package]] name = "swc_ecma_usage_analyzer" version = "0.18.0" @@ -8115,24 +7942,6 @@ dependencies = [ "unicode-id", ] -[[package]] -name = "swc_ecma_utils" -version = "0.121.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8b2d3c4b6dfe2a98d1075b831a8a0fc63323d4bdb339beff77964408a3e55a7" -dependencies = [ - "indexmap 1.9.3", - "num_cpus", - "once_cell", - "rustc-hash", - "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.108.0", - "swc_ecma_visit 0.94.0", - "tracing", - "unicode-id", -] - [[package]] name = "swc_ecma_utils" version = "0.122.0" @@ -8166,20 +7975,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "swc_ecma_visit" -version = "0.94.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3930e7a18c12648f4cb079cd5408569db9f2caf2a8aa169d298b4b3e281ad433" -dependencies = [ - "num-bigint", - "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.108.0", - "swc_visit", - "tracing", -] - [[package]] name = "swc_ecma_visit" version = "0.95.0" @@ -8197,9 +7992,9 @@ dependencies = [ [[package]] name = "swc_emotion" -version = "0.39.0" +version = "0.40.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbea82d8b0d325e69563c1a4c39a82a863982b5b747a88857d8dc9e0f8819308" +checksum = "f7a80eb046e114d6af3e78c28ab870d1de411d91ba4ba2e9caca07627d3f4580" dependencies = [ "base64 0.13.1", "byteorder", @@ -8209,7 +8004,7 @@ dependencies = [ "regex", "serde", "sourcemap", - "swc_core 0.81.8", + "swc_core 0.82.1", "tracing", ] @@ -8350,16 +8145,16 @@ dependencies = [ [[package]] name = "swc_relay" -version = "0.11.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "189538953e941efb03a099a6039c150b7a320781f5fb93af259b352be62fdd70" +checksum = "ec6ff3ce67b7e798e5213b0a58d43d9890a3a821851946d411207467d3d97b44" dependencies = [ "once_cell", "regex", "serde", "serde_json", "swc_common 0.32.0", - "swc_core 0.81.8", + "swc_core 0.82.1", "tracing", ] From 66d97bffd17a25a1caefd0fc5aa493bde382c2fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Tue, 29 Aug 2023 20:12:46 +0900 Subject: [PATCH 05/10] Update swc_core --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3d1f5ce866125..d126e96917a58 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -76,11 +76,11 @@ lto = "off" async-recursion = "1.0.2" # Keep consistent with preset_env_base through swc_core browserslist-rs = { version = "0.12.2" } -mdxjs = { version = "0.1.14" } +mdxjs = { version = "0.1.15" } modularize_imports = { version = "0.37.0" } styled_components = { version = "0.64.0" } styled_jsx = { version = "0.41.0" } -swc_core = { version = "0.82.1" } +swc_core = { version = "0.82.4" } swc_emotion = { version = "0.40.0" } swc_relay = { version = "0.12.0" } testing = { version = "0.34.0" } From 0e5c61fc535c5abc89d84435cbd7b559a19729f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Tue, 29 Aug 2023 20:13:26 +0900 Subject: [PATCH 06/10] cargo lockfile --- Cargo.lock | 531 +++++++++++++++++++---------------------------------- 1 file changed, 189 insertions(+), 342 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d51010ec67083..10d3be54d9b73 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -690,9 +690,9 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.56.1" +version = "0.56.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed713e6d422a1d213f9da791b329609b615b8e4dd9bda90b118654feb82daf66" +checksum = "7b4706d0a47d57797314dc7d333fd7457e25ad9dc5061dba6326e160e0c54af6" dependencies = [ "anyhow", "console_error_panic_hook", @@ -701,10 +701,10 @@ dependencies = [ "serde", "serde-wasm-bindgen", "swc", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", + "swc_common", + "swc_ecma_ast", "swc_ecma_transforms", - "swc_ecma_visit 0.95.0", + "swc_ecma_visit", "wasm-bindgen", "wasm-bindgen-futures", ] @@ -4088,9 +4088,9 @@ dependencies = [ [[package]] name = "markdown" -version = "1.0.0-alpha.10" +version = "1.0.0-alpha.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1bd98c3b68451b0390a289c58c856adb4e2b50cc40507ce2a105d5b00eafc80" +checksum = "08be37c7b5269bb027f69cdf446c96099d1e8da723c0d5fb78856adc6a50680f" dependencies = [ "unicode-id", ] @@ -4143,13 +4143,13 @@ dependencies = [ [[package]] name = "mdxjs" -version = "0.1.14" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "334329b79f2a86b4e432a4f9911df72e4b7dff1164dfa3027bc7f91d60391d8f" +checksum = "e097a5c85092b8b9c49c4cb97bb9aade29bf876e1dd7a6cfedb6a0224892493d" dependencies = [ "markdown", "serde", - "swc_core 0.79.55", + "swc_core", ] [[package]] @@ -4394,7 +4394,7 @@ dependencies = [ "once_cell", "regex", "serde", - "swc_core 0.82.1", + "swc_core", ] [[package]] @@ -6938,7 +6938,7 @@ dependencies = [ "once_cell", "regex", "serde", - "swc_core 0.82.1", + "swc_core", "tracing", ] @@ -6951,7 +6951,7 @@ dependencies = [ "easy-error", "lightningcss", "parcel_selectors", - "swc_core 0.82.1", + "swc_core", "tracing", ] @@ -6991,9 +6991,9 @@ dependencies = [ [[package]] name = "swc" -version = "0.265.1" +version = "0.265.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2a8ae76543a4d58d008cf30f1a40777ca954d1ca31be7b96dd8f7f4370ba480" +checksum = "5ba53e3f02aa1a84dce2fa765b2388d1d50c61ca54b63882e3e368149e488905" dependencies = [ "anyhow", "base64 0.13.1", @@ -7014,22 +7014,22 @@ dependencies = [ "sourcemap", "swc_atoms", "swc_cached", - "swc_common 0.32.0", + "swc_common", "swc_config", - "swc_ecma_ast 0.109.0", - "swc_ecma_codegen 0.144.0", + "swc_ecma_ast", + "swc_ecma_codegen", "swc_ecma_ext_transforms", "swc_ecma_lints", "swc_ecma_loader", "swc_ecma_minifier", - "swc_ecma_parser 0.139.0", + "swc_ecma_parser", "swc_ecma_preset_env", "swc_ecma_transforms", - "swc_ecma_transforms_base 0.132.0", + "swc_ecma_transforms_base", "swc_ecma_transforms_compat", "swc_ecma_transforms_optimization", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_ecma_utils", + "swc_ecma_visit", "swc_error_reporters", "swc_node_comments", "swc_plugin_proxy", @@ -7048,7 +7048,7 @@ dependencies = [ "clap 4.1.11", "owo-colors", "regex", - "swc_core 0.82.1", + "swc_core", ] [[package]] @@ -7069,9 +7069,9 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.219.0" +version = "0.219.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d06d523986030a6cddc738b71a7a88c36edb3c439419bfa1b6dbf33029953924" +checksum = "a09dc06bca10155b807e3810325299bc5a57ca83d7ebe7bbc8ccac5f85b8cc2b" dependencies = [ "anyhow", "crc", @@ -7085,15 +7085,15 @@ dependencies = [ "rayon", "relative-path", "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", - "swc_ecma_codegen 0.144.0", + "swc_common", + "swc_ecma_ast", + "swc_ecma_codegen", "swc_ecma_loader", - "swc_ecma_parser 0.139.0", - "swc_ecma_transforms_base 0.132.0", + "swc_ecma_parser", + "swc_ecma_transforms_base", "swc_ecma_transforms_optimization", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_ecma_utils", + "swc_ecma_visit", "swc_fast_graph", "swc_graph_analyzer", "tracing", @@ -7113,33 +7113,6 @@ dependencies = [ "serde", ] -[[package]] -name = "swc_common" -version = "0.31.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e30cd01afa791b15263fcfe8f77ecbbd020ddef659f0f58d3c7b794ad65c1738" -dependencies = [ - "ahash 0.8.3", - "ast_node", - "better_scoped_tls", - "cfg-if 1.0.0", - "either", - "from_variant", - "new_debug_unreachable", - "num-bigint", - "once_cell", - "rustc-hash", - "serde", - "siphasher", - "string_cache", - "swc_atoms", - "swc_eq_ignore_macros", - "swc_visit", - "tracing", - "unicode-width", - "url", -] - [[package]] name = "swc_common" version = "0.32.0" @@ -7201,32 +7174,16 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.79.55" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ee3a56f867f2fc26c13a7b3b9ef050cf408bf02b67ec4dc3befa43f72da4b90" -dependencies = [ - "swc_atoms", - "swc_common 0.31.18", - "swc_ecma_ast 0.107.4", - "swc_ecma_codegen 0.142.10", - "swc_ecma_parser 0.137.9", - "swc_ecma_transforms_base 0.130.17", - "swc_ecma_visit 0.93.4", - "vergen", -] - -[[package]] -name = "swc_core" -version = "0.82.1" +version = "0.82.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bbb45bdfa5a849236f8746953fcd01b14beb7be9de39541bdc16707f984130e" +checksum = "749bc45ec3e42e70a167ecacbb6f0beacbf34c1050729404abd216df05b37f12" dependencies = [ "binding_macros", "swc", "swc_atoms", "swc_bundler", "swc_cached", - "swc_common 0.32.0", + "swc_common", "swc_css_ast", "swc_css_codegen", "swc_css_compat", @@ -7234,22 +7191,22 @@ dependencies = [ "swc_css_parser", "swc_css_utils", "swc_css_visit", - "swc_ecma_ast 0.109.0", - "swc_ecma_codegen 0.144.0", + "swc_ecma_ast", + "swc_ecma_codegen", "swc_ecma_loader", "swc_ecma_minifier", - "swc_ecma_parser 0.139.0", + "swc_ecma_parser", "swc_ecma_preset_env", "swc_ecma_quote_macros", - "swc_ecma_transforms_base 0.132.0", + "swc_ecma_transforms_base", "swc_ecma_transforms_module", "swc_ecma_transforms_optimization", "swc_ecma_transforms_proposal", "swc_ecma_transforms_react", "swc_ecma_transforms_testing", "swc_ecma_transforms_typescript", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_ecma_utils", + "swc_ecma_visit", "swc_node_base", "swc_nodejs_common", "swc_plugin_proxy", @@ -7269,7 +7226,7 @@ dependencies = [ "serde", "string_enum", "swc_atoms", - "swc_common 0.32.0", + "swc_common", ] [[package]] @@ -7283,7 +7240,7 @@ dependencies = [ "rustc-hash", "serde", "swc_atoms", - "swc_common 0.32.0", + "swc_common", "swc_css_ast", "swc_css_codegen_macros", "swc_css_utils", @@ -7313,7 +7270,7 @@ dependencies = [ "serde", "serde_json", "swc_atoms", - "swc_common 0.32.0", + "swc_common", "swc_css_ast", "swc_css_utils", "swc_css_visit", @@ -7328,7 +7285,7 @@ dependencies = [ "rustc-hash", "serde", "swc_atoms", - "swc_common 0.32.0", + "swc_common", "swc_css_ast", "swc_css_codegen", "swc_css_parser", @@ -7344,7 +7301,7 @@ dependencies = [ "lexical", "serde", "swc_atoms", - "swc_common 0.32.0", + "swc_common", "swc_css_ast", ] @@ -7358,7 +7315,7 @@ dependencies = [ "serde", "serde_json", "swc_atoms", - "swc_common 0.32.0", + "swc_common", "swc_css_ast", "swc_css_visit", ] @@ -7371,27 +7328,11 @@ checksum = "52bde5bd8d92d993a3c69c809b51fadec06bb1c3c325fb951b79b481a74fd30a" dependencies = [ "serde", "swc_atoms", - "swc_common 0.32.0", + "swc_common", "swc_css_ast", "swc_visit", ] -[[package]] -name = "swc_ecma_ast" -version = "0.107.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae06f8db55b8920aa5b5362216ee8319a1edb131412fe06090892bbc99cc1237" -dependencies = [ - "bitflags 2.3.3", - "is-macro", - "num-bigint", - "scoped-tls", - "string_enum", - "swc_atoms", - "swc_common 0.31.18", - "unicode-id", -] - [[package]] name = "swc_ecma_ast" version = "0.109.0" @@ -7407,29 +7348,10 @@ dependencies = [ "serde", "string_enum", "swc_atoms", - "swc_common 0.32.0", + "swc_common", "unicode-id", ] -[[package]] -name = "swc_ecma_codegen" -version = "0.142.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c8f0cebff798cff972aec8c521fe1ed12fa6c33c65e8262b01cce88ec5d91d4" -dependencies = [ - "memchr", - "num-bigint", - "once_cell", - "rustc-hash", - "serde", - "sourcemap", - "swc_atoms", - "swc_common 0.31.18", - "swc_ecma_ast 0.107.4", - "swc_ecma_codegen_macros", - "tracing", -] - [[package]] name = "swc_ecma_codegen" version = "0.144.0" @@ -7443,8 +7365,8 @@ dependencies = [ "serde", "sourcemap", "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", + "swc_common", + "swc_ecma_ast", "swc_ecma_codegen_macros", "tracing", ] @@ -7470,17 +7392,17 @@ checksum = "57eb7bbfbd7d0b4c2d5abf6936efb16d5a228508246a19795d59c849dbff073e" dependencies = [ "phf", "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_common", + "swc_ecma_ast", + "swc_ecma_utils", + "swc_ecma_visit", ] [[package]] name = "swc_ecma_lints" -version = "0.87.0" +version = "0.87.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24930c0f55ee2c91f90dd0160a1d03906da5377407dc02d627bbd35c0b6e4884" +checksum = "fb54a7bb321f20e4dd71c0161771ec14911786c3f0d8104284d44f1bdaa2fa4c" dependencies = [ "auto_impl", "dashmap", @@ -7489,11 +7411,11 @@ dependencies = [ "regex", "serde", "swc_atoms", - "swc_common 0.32.0", + "swc_common", "swc_config", - "swc_ecma_ast 0.109.0", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_ecma_ast", + "swc_ecma_utils", + "swc_ecma_visit", ] [[package]] @@ -7513,15 +7435,15 @@ dependencies = [ "serde", "serde_json", "swc_cached", - "swc_common 0.32.0", + "swc_common", "tracing", ] [[package]] name = "swc_ecma_minifier" -version = "0.186.0" +version = "0.186.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad1be307d63eb332413a87fbd8fbefcd43c4b02fa556d6f0f83949da47cb6d69" +checksum = "4071694a8b9afd5940373a397c2d6950c02d26f737856eb5a929f87d7ea01932" dependencies = [ "arrayvec 0.7.2", "indexmap 1.9.3", @@ -7538,40 +7460,20 @@ dependencies = [ "serde_json", "swc_atoms", "swc_cached", - "swc_common 0.32.0", + "swc_common", "swc_config", - "swc_ecma_ast 0.109.0", - "swc_ecma_codegen 0.144.0", - "swc_ecma_parser 0.139.0", - "swc_ecma_transforms_base 0.132.0", + "swc_ecma_ast", + "swc_ecma_codegen", + "swc_ecma_parser", + "swc_ecma_transforms_base", "swc_ecma_transforms_optimization", "swc_ecma_usage_analyzer", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_ecma_utils", + "swc_ecma_visit", "swc_timer", "tracing", ] -[[package]] -name = "swc_ecma_parser" -version = "0.137.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57413a3865f5419d3fd563f60fc00eea2900911dd17ce284b284931a8cbefed4" -dependencies = [ - "either", - "num-bigint", - "num-traits", - "serde", - "smallvec", - "smartstring", - "stacker", - "swc_atoms", - "swc_common 0.31.18", - "swc_ecma_ast 0.107.4", - "tracing", - "typed-arena", -] - [[package]] name = "swc_ecma_parser" version = "0.139.0" @@ -7586,17 +7488,17 @@ dependencies = [ "smartstring", "stacker", "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", + "swc_common", + "swc_ecma_ast", "tracing", "typed-arena", ] [[package]] name = "swc_ecma_preset_env" -version = "0.200.1" +version = "0.200.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "feab4d8e1219fa6e230a0495f162e53c6de12a5323195137d88c137095ab29b8" +checksum = "da923c29abf6c935a1cbc3cdf1efbee21024b4cc1cd9f79b6f6b90adeb586831" dependencies = [ "anyhow", "dashmap", @@ -7610,11 +7512,11 @@ dependencies = [ "st-map", "string_enum", "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", + "swc_common", + "swc_ecma_ast", "swc_ecma_transforms", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_ecma_utils", + "swc_ecma_visit", ] [[package]] @@ -7628,9 +7530,9 @@ dependencies = [ "proc-macro2", "quote", "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", - "swc_ecma_parser 0.139.0", + "swc_common", + "swc_ecma_ast", + "swc_ecma_parser", "swc_macros_common", "syn 2.0.25", ] @@ -7650,52 +7552,29 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "0.223.0" +version = "0.223.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd8d3471fced2bfb29f0d1113df7ebc0893025bd3d6b280b4761828794baef73" +checksum = "f57bbdb1ca4a5a57f1be992bd50f6d586888cf0cb1ef1a67a9a7e6d7bf1d7e59" dependencies = [ "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", - "swc_ecma_transforms_base 0.132.0", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", "swc_ecma_transforms_compat", "swc_ecma_transforms_module", "swc_ecma_transforms_optimization", "swc_ecma_transforms_proposal", "swc_ecma_transforms_react", "swc_ecma_transforms_typescript", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_ecma_utils", + "swc_ecma_visit", ] [[package]] name = "swc_ecma_transforms_base" -version = "0.130.17" +version = "0.132.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1e31151d6637965e3538b3d6e3c8b2263c6650b09e68baa93e0ebd1985d98e7" -dependencies = [ - "better_scoped_tls", - "bitflags 2.3.3", - "indexmap 1.9.3", - "once_cell", - "phf", - "rustc-hash", - "serde", - "smallvec", - "swc_atoms", - "swc_common 0.31.18", - "swc_ecma_ast 0.107.4", - "swc_ecma_parser 0.137.9", - "swc_ecma_utils 0.120.13", - "swc_ecma_visit 0.93.4", - "tracing", -] - -[[package]] -name = "swc_ecma_transforms_base" -version = "0.132.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ded027a66668b559db333bbbb6187806c50d94f9c2b92550763ae9f351876b9c" +checksum = "bc48b51ff538b700104c32212b0db4ee690284f82e50b71da341db426a348e98" dependencies = [ "better_scoped_tls", "bitflags 2.3.3", @@ -7707,33 +7586,33 @@ dependencies = [ "serde", "smallvec", "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", - "swc_ecma_parser 0.139.0", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_common", + "swc_ecma_ast", + "swc_ecma_parser", + "swc_ecma_utils", + "swc_ecma_visit", "tracing", ] [[package]] name = "swc_ecma_transforms_classes" -version = "0.121.0" +version = "0.121.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41b21b5bc150b96a4845410325f0d24759b20c6916bdfdda34105eb4f23972a6" +checksum = "2d45c3d98505d52e19251b0828c7bda7323f6fb2428bb42e3d1a1b8ce9dd87bc" dependencies = [ "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", - "swc_ecma_transforms_base 0.132.0", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", ] [[package]] name = "swc_ecma_transforms_compat" -version = "0.158.0" +version = "0.158.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "274129ba6d6afb4a56170a9fb6d8fe929e370e648dfa70639b8984caf6556987" +checksum = "744c207b919037553dde9b3f88ed66cc5605434b6c71a32efd33b47e1d224a20" dependencies = [ "arrayvec 0.7.2", "indexmap 1.9.3", @@ -7743,23 +7622,23 @@ dependencies = [ "serde", "smallvec", "swc_atoms", - "swc_common 0.32.0", + "swc_common", "swc_config", - "swc_ecma_ast 0.109.0", - "swc_ecma_transforms_base 0.132.0", + "swc_ecma_ast", + "swc_ecma_transforms_base", "swc_ecma_transforms_classes", "swc_ecma_transforms_macros", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_ecma_utils", + "swc_ecma_visit", "swc_trace_macro", "tracing", ] [[package]] name = "swc_ecma_transforms_macros" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f59c4b6ed5d78d3ad9fc7c6f8ab4f85bba99573d31d9a2c0a712077a6b45efd2" +checksum = "8188eab297da773836ef5cf2af03ee5cca7a563e1be4b146f8141452c28cc690" dependencies = [ "pmutil", "proc-macro2", @@ -7770,9 +7649,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_module" -version = "0.175.0" +version = "0.175.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a8aec33db3a15397df21a17f002da0c00214a542e6dceb868c81ef187669ac7" +checksum = "e69c8e0600fd654a1d86577018b6a593acacf32d7d24dd23ddda3ea1daa81099" dependencies = [ "Inflector", "anyhow", @@ -7785,21 +7664,21 @@ dependencies = [ "serde", "swc_atoms", "swc_cached", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", + "swc_common", + "swc_ecma_ast", "swc_ecma_loader", - "swc_ecma_parser 0.139.0", - "swc_ecma_transforms_base 0.132.0", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_ecma_parser", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", "tracing", ] [[package]] name = "swc_ecma_transforms_optimization" -version = "0.192.0" +version = "0.192.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fe31958ce79df0647c825bb69a9270eda6f0974750be67aa11aabf5cf2bb943" +checksum = "946f11d85fb68b6076a54ee5712013365fb17a97460204cbb8d0713ec76211fb" dependencies = [ "dashmap", "indexmap 1.9.3", @@ -7809,42 +7688,42 @@ dependencies = [ "rustc-hash", "serde_json", "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", - "swc_ecma_parser 0.139.0", - "swc_ecma_transforms_base 0.132.0", + "swc_common", + "swc_ecma_ast", + "swc_ecma_parser", + "swc_ecma_transforms_base", "swc_ecma_transforms_macros", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_ecma_utils", + "swc_ecma_visit", "swc_fast_graph", "tracing", ] [[package]] name = "swc_ecma_transforms_proposal" -version = "0.166.0" +version = "0.166.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fac6064abe38b06bf7d38e295991d30aa681b808470ef3c65551bba6e29c0dfe" +checksum = "80c294ae4768d92e1d9b23ccb99fae11253b76e80697a34183dd5809f207c3e1" dependencies = [ "either", "rustc-hash", "serde", "smallvec", "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", - "swc_ecma_transforms_base 0.132.0", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", "swc_ecma_transforms_classes", "swc_ecma_transforms_macros", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_ecma_utils", + "swc_ecma_visit", ] [[package]] name = "swc_ecma_transforms_react" -version = "0.178.0" +version = "0.178.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e790a4538d1cc44212db7ae756203c2d41882c0171350676c77b30c2e67b551" +checksum = "87a268903e394caca4abe23a33b4f6198ad16269fa8e2888f1f7a9b9c457b08d" dependencies = [ "base64 0.13.1", "dashmap", @@ -7855,21 +7734,21 @@ dependencies = [ "sha-1", "string_enum", "swc_atoms", - "swc_common 0.32.0", + "swc_common", "swc_config", - "swc_ecma_ast 0.109.0", - "swc_ecma_parser 0.139.0", - "swc_ecma_transforms_base 0.132.0", + "swc_ecma_ast", + "swc_ecma_parser", + "swc_ecma_transforms_base", "swc_ecma_transforms_macros", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_ecma_utils", + "swc_ecma_visit", ] [[package]] name = "swc_ecma_transforms_testing" -version = "0.135.0" +version = "0.135.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae4e4d3bd65d327be26020f7e03b65d362eade27961b93bb38338bd284ab6b1c" +checksum = "da0a4dd31f47817b37b9cf4c128b14fe4e74639d997fb752a56b4d0b0ae871c6" dependencies = [ "ansi_term", "anyhow", @@ -7879,32 +7758,32 @@ dependencies = [ "serde_json", "sha-1", "sourcemap", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", - "swc_ecma_codegen 0.144.0", - "swc_ecma_parser 0.139.0", + "swc_common", + "swc_ecma_ast", + "swc_ecma_codegen", + "swc_ecma_parser", "swc_ecma_testing", - "swc_ecma_transforms_base 0.132.0", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", "tempfile", "testing", ] [[package]] name = "swc_ecma_transforms_typescript" -version = "0.182.0" +version = "0.182.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5801ea5d187d43df5d385a8c542eb29bedf4f363ec6fd6cd49079a8e79287264" +checksum = "63087ac08b6696480196efaf58383a591fc84bb851c2c367593fbae5cb514b37" dependencies = [ "serde", "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", - "swc_ecma_transforms_base 0.132.0", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", "swc_ecma_transforms_react", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_ecma_utils", + "swc_ecma_visit", ] [[package]] @@ -7916,32 +7795,14 @@ dependencies = [ "indexmap 1.9.3", "rustc-hash", "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", - "swc_ecma_utils 0.122.0", - "swc_ecma_visit 0.95.0", + "swc_common", + "swc_ecma_ast", + "swc_ecma_utils", + "swc_ecma_visit", "swc_timer", "tracing", ] -[[package]] -name = "swc_ecma_utils" -version = "0.120.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e8a73a5d66c20ed9105e5ee2bbbcfccef9d3b2b72ed2d45db3e540fccddf7b6" -dependencies = [ - "indexmap 1.9.3", - "num_cpus", - "once_cell", - "rustc-hash", - "swc_atoms", - "swc_common 0.31.18", - "swc_ecma_ast 0.107.4", - "swc_ecma_visit 0.93.4", - "tracing", - "unicode-id", -] - [[package]] name = "swc_ecma_utils" version = "0.122.0" @@ -7954,27 +7815,13 @@ dependencies = [ "rayon", "rustc-hash", "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", - "swc_ecma_visit 0.95.0", + "swc_common", + "swc_ecma_ast", + "swc_ecma_visit", "tracing", "unicode-id", ] -[[package]] -name = "swc_ecma_visit" -version = "0.93.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fb77e49a630356fe2ba77db102294fc0bbe1050e85c962f5b4aa3de06c4d51a" -dependencies = [ - "num-bigint", - "swc_atoms", - "swc_common 0.31.18", - "swc_ecma_ast 0.107.4", - "swc_visit", - "tracing", -] - [[package]] name = "swc_ecma_visit" version = "0.95.0" @@ -7984,8 +7831,8 @@ dependencies = [ "num-bigint", "serde", "swc_atoms", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", + "swc_common", + "swc_ecma_ast", "swc_visit", "tracing", ] @@ -8004,7 +7851,7 @@ dependencies = [ "regex", "serde", "sourcemap", - "swc_core 0.82.1", + "swc_core", "tracing", ] @@ -8030,7 +7877,7 @@ dependencies = [ "miette 4.7.1", "once_cell", "parking_lot", - "swc_common 0.32.0", + "swc_common", ] [[package]] @@ -8042,7 +7889,7 @@ dependencies = [ "indexmap 1.9.3", "petgraph", "rustc-hash", - "swc_common 0.32.0", + "swc_common", ] [[package]] @@ -8053,7 +7900,7 @@ checksum = "90b996222612382d0d297d0315f5eedc5a830c37e62476c69774884633d31177" dependencies = [ "auto_impl", "petgraph", - "swc_common 0.32.0", + "swc_common", "swc_fast_graph", "tracing", ] @@ -8088,7 +7935,7 @@ checksum = "73cee5dededc1e0d19e53dd0a41a343a43e21ed9b62c3df0fdd5801c11533bc9" dependencies = [ "dashmap", "swc_atoms", - "swc_common 0.32.0", + "swc_common", ] [[package]] @@ -8113,8 +7960,8 @@ checksum = "0d3777c28430000db35867b0de49cecdc36519d27045e7d027ef041954bba846" dependencies = [ "better_scoped_tls", "rkyv", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", + "swc_common", + "swc_ecma_ast", "swc_trace_macro", "tracing", ] @@ -8132,8 +7979,8 @@ dependencies = [ "parking_lot", "serde", "serde_json", - "swc_common 0.32.0", - "swc_ecma_ast 0.109.0", + "swc_common", + "swc_ecma_ast", "swc_plugin_proxy", "tokio", "tracing", @@ -8153,8 +8000,8 @@ dependencies = [ "regex", "serde", "serde_json", - "swc_common 0.32.0", - "swc_core 0.82.1", + "swc_common", + "swc_core", "tracing", ] @@ -8442,7 +8289,7 @@ dependencies = [ "pretty_assertions", "regex", "serde_json", - "swc_common 0.32.0", + "swc_common", "swc_error_reporters", "testing_macros", "tracing", @@ -9406,7 +9253,7 @@ dependencies = [ "styled_components", "styled_jsx", "swc-ast-explorer", - "swc_core 0.82.1", + "swc_core", "swc_emotion", "swc_relay", "testing", @@ -9459,7 +9306,7 @@ dependencies = [ "serde_json", "serde_qs", "sourcemap", - "swc_core 0.82.1", + "swc_core", "turbo-tasks", "turbo-tasks-build", "turbo-tasks-fs", @@ -9570,7 +9417,7 @@ dependencies = [ "serde_json", "serde_qs", "sourcemap", - "swc_core 0.82.1", + "swc_core", "tokio", "tracing", "turbo-tasks", @@ -9605,7 +9452,7 @@ dependencies = [ "once_cell", "regex", "serde", - "swc_core 0.82.1", + "swc_core", "turbo-tasks", "turbo-tasks-build", "turbo-tasks-fs", @@ -9625,7 +9472,7 @@ dependencies = [ "serde", "serde_json", "serde_qs", - "swc_core 0.82.1", + "swc_core", "tracing", "turbo-tasks", "turbo-tasks-build", @@ -9697,7 +9544,7 @@ dependencies = [ "serde", "serde_json", "serde_qs", - "swc_core 0.82.1", + "swc_core", "tokio", "tracing", "turbo-tasks", @@ -9733,7 +9580,7 @@ dependencies = [ "serde_json", "styled_components", "styled_jsx", - "swc_core 0.82.1", + "swc_core", "swc_emotion", "swc_relay", "turbo-tasks", @@ -9750,7 +9597,7 @@ dependencies = [ "anyhow", "indoc", "serde", - "swc_core 0.82.1", + "swc_core", "turbo-tasks", "turbo-tasks-build", "turbo-tasks-fs", @@ -9874,7 +9721,7 @@ dependencies = [ name = "turbopack-swc-utils" version = "0.1.0" dependencies = [ - "swc_core 0.82.1", + "swc_core", "turbo-tasks", "turbo-tasks-build", "turbopack-core", From 71f945198109ac5f6708aa876c46c020e51b4163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Wed, 30 Aug 2023 11:28:45 +0900 Subject: [PATCH 07/10] cargo lockfile --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 10d3be54d9b73..664f5fa7a76f9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4985,9 +4985,9 @@ dependencies = [ [[package]] name = "paste" -version = "1.0.12" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f746c4065a8fa3fe23974dd82f15431cc8d40779821001404d10d2e79ca7d79" +checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" [[package]] name = "path-clean" From 06c3d41e63efd8bc9ac2cea89dd6a9c5a5b1d7da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Wed, 30 Aug 2023 11:40:49 +0900 Subject: [PATCH 08/10] with --- crates/turbopack-ecmascript/src/parse.rs | 4 ++-- crates/turbopack-ecmascript/src/references/mod.rs | 2 +- crates/turbopack-ecmascript/src/tree_shake/graph.rs | 6 +++--- crates/turbopack-ecmascript/src/tree_shake/merge.rs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/turbopack-ecmascript/src/parse.rs b/crates/turbopack-ecmascript/src/parse.rs index edfb14585e320..e23a5fd1fb922 100644 --- a/crates/turbopack-ecmascript/src/parse.rs +++ b/crates/turbopack-ecmascript/src/parse.rs @@ -253,11 +253,11 @@ async fn parse_content( decorators: true, decorators_before_export: true, export_default_from: true, - import_assertions: true, + import_attributes: true, allow_super_outside_method: true, allow_return_outside_function: true, auto_accessors: true, - using_decl: true, + explicit_resource_management: true, }), EcmascriptModuleAssetType::Typescript | EcmascriptModuleAssetType::TypescriptWithTypes => { diff --git a/crates/turbopack-ecmascript/src/references/mod.rs b/crates/turbopack-ecmascript/src/references/mod.rs index 6a68057a30ccd..e8baf93d91f30 100644 --- a/crates/turbopack-ecmascript/src/references/mod.rs +++ b/crates/turbopack-ecmascript/src/references/mod.rs @@ -2602,7 +2602,7 @@ pub struct AstPath(#[turbo_tasks(trace_ignore)] Vec); pub static TURBOPACK_HELPER: &str = "__turbopackHelper"; pub fn is_turbopack_helper_import(import: &ImportDecl) -> bool { - import.asserts.as_ref().map_or(false, |asserts| { + import.with.as_ref().map_or(false, |asserts| { asserts.props.iter().any(|assert| { assert .as_prop() diff --git a/crates/turbopack-ecmascript/src/tree_shake/graph.rs b/crates/turbopack-ecmascript/src/tree_shake/graph.rs index 1ae4439dd3d22..ce19749642840 100644 --- a/crates/turbopack-ecmascript/src/tree_shake/graph.rs +++ b/crates/turbopack-ecmascript/src/tree_shake/graph.rs @@ -299,7 +299,7 @@ impl DepGraph { specifiers, src: Box::new(uri_of_module.clone().into()), type_only: false, - asserts: Some(Box::new(create_turbopack_chunk_id_assert(dep))), + with: Some(Box::new(create_turbopack_chunk_id_assert(dep))), }))); } @@ -334,7 +334,7 @@ impl DepGraph { )], src: None, type_only: false, - asserts: Some(Box::new(ObjectLit { + with: Some(Box::new(ObjectLit { span: DUMMY_SP, props: vec![assertion_prop], })), @@ -787,7 +787,7 @@ impl DepGraph { })], src: None, type_only: false, - asserts: None, + with: None, })), export: Some(export.clone()), ..Default::default() diff --git a/crates/turbopack-ecmascript/src/tree_shake/merge.rs b/crates/turbopack-ecmascript/src/tree_shake/merge.rs index 4ec95d3e1038b..984dbf95f56b1 100644 --- a/crates/turbopack-ecmascript/src/tree_shake/merge.rs +++ b/crates/turbopack-ecmascript/src/tree_shake/merge.rs @@ -49,7 +49,7 @@ where // Try to prepend the content of module let part_id = import - .asserts + .with .as_deref() .and_then(find_turbopack_chunk_id_in_asserts); From 70b0a8b782aea4a1bbbb0afd26ec872e7302fdc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Wed, 30 Aug 2023 11:41:11 +0900 Subject: [PATCH 09/10] with --- .../src/transform/directives/server_to_client_proxy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/turbopack-ecmascript-plugins/src/transform/directives/server_to_client_proxy.rs b/crates/turbopack-ecmascript-plugins/src/transform/directives/server_to_client_proxy.rs index b52c836e19b2a..fe6374cce5930 100644 --- a/crates/turbopack-ecmascript-plugins/src/transform/directives/server_to_client_proxy.rs +++ b/crates/turbopack-ecmascript-plugins/src/transform/directives/server_to_client_proxy.rs @@ -31,7 +31,7 @@ pub fn create_proxy_module(transition_name: &str, target_import: &str) -> Progra })], src: Box::new(target_import.into()), type_only: false, - asserts: Some(Box::new(ObjectLit { + with: Some(Box::new(ObjectLit { span: DUMMY_SP, props: vec![PropOrSpread::Prop(Box::new(Prop::KeyValue(KeyValueProp { key: PropName::Ident(Ident::new(TURBOPACK_HELPER.into(), DUMMY_SP)), From bdc59fe71fee11b0533f1b2414636e2eac003580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Wed, 30 Aug 2023 13:19:53 +0900 Subject: [PATCH 10/10] Update test refs --- .../tests/tree-shaker/analyzer/1/output.md | 72 ++++++------- .../tests/tree-shaker/analyzer/2/output.md | 72 ++++++------- .../tests/tree-shaker/analyzer/3/output.md | 38 +++---- .../tree-shaker/analyzer/complex/output.md | 100 +++++++++--------- .../tree-shaker/analyzer/simple/output.md | 8 +- .../analyzer/test-config-1/output.md | 72 ++++++------- 6 files changed, 181 insertions(+), 181 deletions(-) diff --git a/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/1/output.md b/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/1/output.md index c8ac079b1b880..e877e0722442c 100644 --- a/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/1/output.md +++ b/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/1/output.md @@ -370,22 +370,22 @@ graph TD # Modules (dev) ## Part 0 ```js -import { foobarCopy } from "entry.js" assert { +import { foobarCopy } from "entry.js" with { __turbopack_chunk__: 9 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 11 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; "module evaluation"; @@ -396,13 +396,13 @@ console.log(foobarCopy); ``` ## Part 1 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; export { foobar }; @@ -410,7 +410,7 @@ export { foobar }; ``` ## Part 2 ```js -import { foo } from "entry.js" assert { +import { foo } from "entry.js" with { __turbopack_chunk__: 6 }; export { foo }; @@ -418,16 +418,16 @@ export { foo }; ``` ## Part 3 ```js -import { internal } from "entry.js" assert { +import { internal } from "entry.js" with { __turbopack_chunk__: 11 }; -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; export { external1 }; @@ -438,10 +438,10 @@ function external1() { ``` ## Part 4 ```js -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 9 }; export { external2 }; @@ -458,7 +458,7 @@ export { foobar }; ``` ## Part 6 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; const foo = foobar; @@ -473,10 +473,10 @@ export { bar }; ``` ## Part 8 ```js -import { bar } from "entry.js" assert { +import { bar } from "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; foobar += bar; @@ -485,10 +485,10 @@ export { foobar }; ``` ## Part 9 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; let foobarCopy = foobar; @@ -497,10 +497,10 @@ export { foobarCopy }; ``` ## Part 10 ```js -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 9 }; foobar += "foo"; @@ -509,13 +509,13 @@ export { foobar }; ``` ## Part 11 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; import { upper } from "module"; @@ -551,10 +551,10 @@ console.log(foobarCopy); # Modules (prod) ## Part 0 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; "module evaluation"; @@ -566,13 +566,13 @@ export { foobarCopy }; ``` ## Part 1 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; export { foobar }; @@ -580,7 +580,7 @@ export { foobar }; ``` ## Part 2 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; export { foo }; @@ -590,13 +590,13 @@ export { foo }; ``` ## Part 3 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; export { external1 }; @@ -631,7 +631,7 @@ export { bar }; ``` ## Part 7 ```js -import { bar } from "entry.js" assert { +import { bar } from "entry.js" with { __turbopack_chunk__: 6 }; foobar += bar; diff --git a/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/2/output.md b/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/2/output.md index d32493d39413c..23c73781b67ec 100644 --- a/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/2/output.md +++ b/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/2/output.md @@ -392,22 +392,22 @@ graph TD # Modules (dev) ## Part 0 ```js -import { foobarCopy } from "entry.js" assert { +import { foobarCopy } from "entry.js" with { __turbopack_chunk__: 9 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 11 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; "module evaluation"; @@ -419,16 +419,16 @@ import "other"; ``` ## Part 1 ```js -import { internal } from "entry.js" assert { +import { internal } from "entry.js" with { __turbopack_chunk__: 11 }; -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; export { external1 }; @@ -439,13 +439,13 @@ function external1() { ``` ## Part 2 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; export { foobar }; @@ -453,7 +453,7 @@ export { foobar }; ``` ## Part 3 ```js -import { foo } from "entry.js" assert { +import { foo } from "entry.js" with { __turbopack_chunk__: 6 }; export { foo }; @@ -461,10 +461,10 @@ export { foo }; ``` ## Part 4 ```js -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 9 }; export { external2 }; @@ -481,7 +481,7 @@ export { foobar }; ``` ## Part 6 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; const foo = foobar; @@ -496,10 +496,10 @@ export { bar }; ``` ## Part 8 ```js -import { bar } from "entry.js" assert { +import { bar } from "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; foobar += bar; @@ -508,10 +508,10 @@ export { foobar }; ``` ## Part 9 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; let foobarCopy = foobar; @@ -520,10 +520,10 @@ export { foobarCopy }; ``` ## Part 10 ```js -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 9 }; foobar += "foo"; @@ -532,13 +532,13 @@ export { foobar }; ``` ## Part 11 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; import { upper } from "module"; @@ -575,10 +575,10 @@ console.log(foobarCopy); # Modules (prod) ## Part 0 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; "module evaluation"; @@ -591,13 +591,13 @@ export { foobarCopy }; ``` ## Part 1 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; export { external1 }; @@ -612,13 +612,13 @@ function internal() { ``` ## Part 2 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; export { foobar }; @@ -626,7 +626,7 @@ export { foobar }; ``` ## Part 3 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; export { foo }; @@ -656,7 +656,7 @@ export { bar }; ``` ## Part 7 ```js -import { bar } from "entry.js" assert { +import { bar } from "entry.js" with { __turbopack_chunk__: 6 }; foobar += bar; diff --git a/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/3/output.md b/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/3/output.md index 650453250f4ec..454f40e823f93 100644 --- a/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/3/output.md +++ b/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/3/output.md @@ -329,19 +329,19 @@ graph TD # Modules (dev) ## Part 0 ```js -import { c1_3 } from "entry.js" assert { +import { c1_3 } from "entry.js" with { __turbopack_chunk__: 4 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; -import { c2_2 } from "entry.js" assert { +import { c2_2 } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; "module evaluation"; @@ -351,7 +351,7 @@ c2_2(); ``` ## Part 1 ```js -import { c1_1 } from "entry.js" assert { +import { c1_1 } from "entry.js" with { __turbopack_chunk__: 4 }; export { c1_1 }; @@ -359,7 +359,7 @@ export { c1_1 }; ``` ## Part 2 ```js -import { c1_3 } from "entry.js" assert { +import { c1_3 } from "entry.js" with { __turbopack_chunk__: 4 }; export { c1_3 }; @@ -367,7 +367,7 @@ export { c1_3 }; ``` ## Part 3 ```js -import { c2_2 } from "entry.js" assert { +import { c2_2 } from "entry.js" with { __turbopack_chunk__: 5 }; export { c2_2 }; @@ -375,10 +375,10 @@ export { c2_2 }; ``` ## Part 4 ```js -import { d1 } from "entry.js" assert { +import { d1 } from "entry.js" with { __turbopack_chunk__: 6 }; -import { d2 } from "entry.js" assert { +import { d2 } from "entry.js" with { __turbopack_chunk__: 7 }; function c1_1() { @@ -394,7 +394,7 @@ function c1_3() { ``` ## Part 5 ```js -import { d3 } from "entry.js" assert { +import { d3 } from "entry.js" with { __turbopack_chunk__: 8 }; function c2_1() { @@ -454,10 +454,10 @@ c2_2(); # Modules (prod) ## Part 0 ```js -import { c1_3 } from "entry.js" assert { +import { c1_3 } from "entry.js" with { __turbopack_chunk__: 4 }; -import { c2_2 } from "entry.js" assert { +import { c2_2 } from "entry.js" with { __turbopack_chunk__: 5 }; "module evaluation"; @@ -467,7 +467,7 @@ c2_2(); ``` ## Part 1 ```js -import { c1_1 } from "entry.js" assert { +import { c1_1 } from "entry.js" with { __turbopack_chunk__: 4 }; export { c1_1 }; @@ -475,7 +475,7 @@ export { c1_1 }; ``` ## Part 2 ```js -import { c1_3 } from "entry.js" assert { +import { c1_3 } from "entry.js" with { __turbopack_chunk__: 4 }; export { c1_3 }; @@ -483,7 +483,7 @@ export { c1_3 }; ``` ## Part 3 ```js -import { c2_2 } from "entry.js" assert { +import { c2_2 } from "entry.js" with { __turbopack_chunk__: 5 }; export { c2_2 }; @@ -491,10 +491,10 @@ export { c2_2 }; ``` ## Part 4 ```js -import { d1 } from "entry.js" assert { +import { d1 } from "entry.js" with { __turbopack_chunk__: 6 }; -import { d2 } from "entry.js" assert { +import { d2 } from "entry.js" with { __turbopack_chunk__: 7 }; function c1_1() { @@ -510,7 +510,7 @@ function c1_3() { ``` ## Part 5 ```js -import { d3 } from "entry.js" assert { +import { d3 } from "entry.js" with { __turbopack_chunk__: 8 }; function c2_1() { diff --git a/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/complex/output.md b/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/complex/output.md index 8fa78129359f0..9edf2198ba163 100644 --- a/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/complex/output.md +++ b/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/complex/output.md @@ -402,13 +402,13 @@ graph TD # Modules (dev) ## Part 0 ```js -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 11 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 13 }; "module evaluation"; @@ -416,7 +416,7 @@ import "entry.js" assert { ``` ## Part 1 ```js -import { dogRef } from "entry.js" assert { +import { dogRef } from "entry.js" with { __turbopack_chunk__: 5 }; export { dogRef }; @@ -424,7 +424,7 @@ export { dogRef }; ``` ## Part 2 ```js -import { cat } from "entry.js" assert { +import { cat } from "entry.js" with { __turbopack_chunk__: 14 }; export { cat }; @@ -432,7 +432,7 @@ export { cat }; ``` ## Part 3 ```js -import { cat } from "entry.js" assert { +import { cat } from "entry.js" with { __turbopack_chunk__: 14 }; export { initialCat }; @@ -442,19 +442,19 @@ export { initialCat }; ``` ## Part 4 ```js -import { cat } from "entry.js" assert { +import { cat } from "entry.js" with { __turbopack_chunk__: 14 }; -import { dog } from "entry.js" assert { +import { dog } from "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 12 }; export { getChimera }; @@ -465,22 +465,22 @@ function getChimera() { ``` ## Part 5 ```js -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 13 }; -import { dog } from "entry.js" assert { +import { dog } from "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 12 }; -import { getDog } from "entry.js" assert { +import { getDog } from "entry.js" with { __turbopack_chunk__: 9 }; function setDog(newDog) { @@ -508,10 +508,10 @@ export { dog }; ``` ## Part 8 ```js -import { dog } from "entry.js" assert { +import { dog } from "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; console.log(dog); @@ -519,16 +519,16 @@ console.log(dog); ``` ## Part 9 ```js -import { dog } from "entry.js" assert { +import { dog } from "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 12 }; function getDog() { @@ -538,7 +538,7 @@ function getDog() { ``` ## Part 10 ```js -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; dog += "!"; @@ -547,16 +547,16 @@ export { dog }; ``` ## Part 11 ```js -import { dog } from "entry.js" assert { +import { dog } from "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; console.log(dog); @@ -564,7 +564,7 @@ console.log(dog); ``` ## Part 12 ```js -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 11 }; dog += "!"; @@ -573,22 +573,22 @@ export { dog }; ``` ## Part 13 ```js -import { dog } from "entry.js" assert { +import { dog } from "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 12 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 11 }; console.log(dog); @@ -619,16 +619,16 @@ console.log(dog); # Modules (prod) ## Part 0 ```js -import { dog } from "entry.js" assert { +import { dog } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; "module evaluation"; @@ -639,16 +639,16 @@ console.log(dog); ``` ## Part 1 ```js -import { dog } from "entry.js" assert { +import { dog } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; export { dogRef }; @@ -668,7 +668,7 @@ export { dogRef }; ``` ## Part 2 ```js -import { cat } from "entry.js" assert { +import { cat } from "entry.js" with { __turbopack_chunk__: 9 }; export { cat }; @@ -676,7 +676,7 @@ export { cat }; ``` ## Part 3 ```js -import { cat } from "entry.js" assert { +import { cat } from "entry.js" with { __turbopack_chunk__: 9 }; export { initialCat }; @@ -686,19 +686,19 @@ export { initialCat }; ``` ## Part 4 ```js -import { cat } from "entry.js" assert { +import { cat } from "entry.js" with { __turbopack_chunk__: 9 }; -import { dog } from "entry.js" assert { +import { dog } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; export { getChimera }; diff --git a/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/simple/output.md b/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/simple/output.md index b7a3798d69090..dc57106b6b849 100644 --- a/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/simple/output.md +++ b/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/simple/output.md @@ -129,7 +129,7 @@ graph TD ``` ## Part 1 ```js -import { dog } from "entry.js" assert { +import { dog } from "entry.js" with { __turbopack_chunk__: 3 }; export { DOG }; @@ -139,7 +139,7 @@ export { DOG }; ``` ## Part 2 ```js -import { dog } from "entry.js" assert { +import { dog } from "entry.js" with { __turbopack_chunk__: 3 }; export { CHIMERA }; @@ -168,7 +168,7 @@ export { dog }; ``` ## Part 1 ```js -import { dog } from "entry.js" assert { +import { dog } from "entry.js" with { __turbopack_chunk__: 3 }; export { DOG }; @@ -178,7 +178,7 @@ export { DOG }; ``` ## Part 2 ```js -import { dog } from "entry.js" assert { +import { dog } from "entry.js" with { __turbopack_chunk__: 3 }; export { CHIMERA }; diff --git a/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/test-config-1/output.md b/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/test-config-1/output.md index d513c9fdf1d5f..79e9885554f02 100644 --- a/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/test-config-1/output.md +++ b/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/test-config-1/output.md @@ -370,22 +370,22 @@ graph TD # Modules (dev) ## Part 0 ```js -import { foobarCopy } from "entry.js" assert { +import { foobarCopy } from "entry.js" with { __turbopack_chunk__: 9 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 11 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; "module evaluation"; @@ -396,13 +396,13 @@ console.log(foobarCopy); ``` ## Part 1 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; export { foobar }; @@ -410,7 +410,7 @@ export { foobar }; ``` ## Part 2 ```js -import { foo } from "entry.js" assert { +import { foo } from "entry.js" with { __turbopack_chunk__: 6 }; export { foo }; @@ -418,16 +418,16 @@ export { foo }; ``` ## Part 3 ```js -import { internal } from "entry.js" assert { +import { internal } from "entry.js" with { __turbopack_chunk__: 11 }; -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; export { external1 }; @@ -438,10 +438,10 @@ function external1() { ``` ## Part 4 ```js -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 9 }; export { external2 }; @@ -458,7 +458,7 @@ export { foobar }; ``` ## Part 6 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; const foo = foobar; @@ -473,10 +473,10 @@ export { bar }; ``` ## Part 8 ```js -import { bar } from "entry.js" assert { +import { bar } from "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; foobar += bar; @@ -485,10 +485,10 @@ export { foobar }; ``` ## Part 9 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; let foobarCopy = foobar; @@ -497,10 +497,10 @@ export { foobarCopy }; ``` ## Part 10 ```js -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 6 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 9 }; foobar += "foo"; @@ -509,13 +509,13 @@ export { foobar }; ``` ## Part 11 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 10 }; import { upper } from "module"; @@ -551,10 +551,10 @@ console.log(foobarCopy); # Modules (prod) ## Part 0 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; "module evaluation"; @@ -566,13 +566,13 @@ export { foobarCopy }; ``` ## Part 1 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; export { foobar }; @@ -580,7 +580,7 @@ export { foobar }; ``` ## Part 2 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; export { foo }; @@ -590,13 +590,13 @@ export { foo }; ``` ## Part 3 ```js -import { foobar } from "entry.js" assert { +import { foobar } from "entry.js" with { __turbopack_chunk__: 5 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 7 }; -import "entry.js" assert { +import "entry.js" with { __turbopack_chunk__: 8 }; export { external1 }; @@ -631,7 +631,7 @@ export { bar }; ``` ## Part 7 ```js -import { bar } from "entry.js" assert { +import { bar } from "entry.js" with { __turbopack_chunk__: 6 }; foobar += bar;