diff --git a/Cargo.lock b/Cargo.lock index d6bd96522648..f3f98d460c54 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -148,9 +148,9 @@ checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" [[package]] name = "ast_node" -version = "0.9.6" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3e3e06ec6ac7d893a0db7127d91063ad7d9da8988f8a1a256f03729e6eec026" +checksum = "2ab31376d309dd3bfc9cfb3c11c93ce0e0741bbe0354b20e7f8c60b044730b79" dependencies = [ "proc-macro2", "quote", @@ -213,14 +213,13 @@ dependencies = [ [[package]] name = "auto_impl" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fee3da8ef1276b0bee5dd1c7258010d8fffd31801447323115a25560e1327b89" +checksum = "3c87f3f15e7794432337fc718554eaa4dc8f04c9677a950ffe366f20a162ae42" dependencies = [ - "proc-macro-error", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.58", ] [[package]] @@ -888,9 +887,9 @@ checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125" [[package]] name = "either" -version = "1.9.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" +checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2" [[package]] name = "encode_unicode" @@ -1023,9 +1022,9 @@ dependencies = [ [[package]] name = "from_variant" -version = "0.1.7" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a0b11eeb173ce52f84ebd943d42e58813a2ebb78a6a3ff0a243b71c5199cd7b" +checksum = "fdc9cc75639b041067353b9bce2450d6847e547276c6fbe4487d7407980e07db" dependencies = [ "proc-macro2", "swc_macros_common", @@ -1337,15 +1336,16 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hstr" -version = "0.2.6" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de90d3db62411eb62eddabe402d706ac4970f7ac8d088c05f11069cad9be9857" +checksum = "96274be293b8877e61974a607105d09c84caebe9620b47774aa8a6b942042dd4" dependencies = [ + "hashbrown 0.14.3", "new_debug_unreachable", "once_cell", "phf", "rustc-hash", - "smallvec", + "triomphe", ] [[package]] @@ -1472,12 +1472,11 @@ dependencies = [ [[package]] name = "is-macro" -version = "0.3.0" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4467ed1321b310c2625c5aa6c1b1ffc5de4d9e42668cf697a08fb033ee8265e" +checksum = "59a85abdc13717906baccb5a1e435556ce0df215f242892f721dff62bf25288f" dependencies = [ "Inflector", - "pmutil", "proc-macro2", "quote", "syn 2.0.58", @@ -2400,9 +2399,9 @@ checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" [[package]] name = "preset_env_base" -version = "0.4.11" +version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d99dc6ba4753f07bfbc4dbf3137618d31af2611fcaced7237647075ca687eaa" +checksum = "08ccd15679953ae0d5fa716af78b58c0bfdc69a0534bfe9ea423abd1eaaf527b" dependencies = [ "ahash 0.8.11", "anyhow", @@ -2693,12 +2692,13 @@ checksum = "e3a8614ee435691de62bcffcf4a66d91b3594bf1428a5722e79103249a095690" [[package]] name = "rkyv" -version = "0.7.42" +version = "0.7.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0200c8230b013893c0b2d6213d6ec64ed2b9be2e0e016682b7224ff82cff5c58" +checksum = "5cba464629b3394fc4dbc6f940ff8f5b4ff5c7aef40f29166fd4ad12acbc99c0" dependencies = [ "bitvec", "bytecheck", + "bytes", "hashbrown 0.12.3", "indexmap 1.9.3", "ptr_meta", @@ -4144,9 +4144,9 @@ dependencies = [ [[package]] name = "string_enum" -version = "0.4.2" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b650ea2087d32854a0f20b837fc56ec987a1cb4f758c9757e1171ee9812da63" +checksum = "05e383308aebc257e7d7920224fa055c632478d92744eca77f99be8fa1545b90" dependencies = [ "proc-macro2", "quote", @@ -4162,9 +4162,9 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "styled_components" -version = "0.96.8" +version = "0.96.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27f13af1b2e9b55614b681c785ddcf96e059076be58393c1055b795c8283a956" +checksum = "e8733aac9489a2e65780c2cd51a4f138f3645e4046fe20ab34a85261812759b2" dependencies = [ "Inflector", "once_cell", @@ -4251,9 +4251,9 @@ dependencies = [ [[package]] name = "swc" -version = "0.273.25" +version = "0.274.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28571cc2607038238dcfc8dc0fe43af34fa4464124b677fa752d44515bde65bd" +checksum = "272cae2cabb898bcf0dd9effc66255bc50cdf9360d2ed63cdecce4f3d3d5fa34" dependencies = [ "anyhow", "base64 0.21.7", @@ -4302,9 +4302,9 @@ dependencies = [ [[package]] name = "swc_atoms" -version = "0.6.5" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d538eaaa6f085161d088a04cf0a3a5a52c5a7f2b3bd9b83f73f058b0ed357c0" +checksum = "bb6567e4e67485b3e7662b486f1565bdae54bd5b9d6b16b2ba1a9babb1e42125" dependencies = [ "bytecheck", "hstr", @@ -4330,9 +4330,9 @@ dependencies = [ [[package]] name = "swc_common" -version = "0.33.21" +version = "0.33.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89598a0dfe7311750e6fad8464cafcec8ee010c649c2e04531b25e32362fdec7" +checksum = "a2f9706038906e66f3919028f9f7a37f3ed552f1b85578e93f4468742e2da438" dependencies = [ "ahash 0.8.11", "anyhow", @@ -4363,9 +4363,9 @@ dependencies = [ [[package]] name = "swc_compiler_base" -version = "0.7.19" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66405c58d5241ae020b0522a08bdc284da52b13742a58e3023e09cc2e0fb9e8c" +checksum = "273a2125d0223f80ce7de0bc17fc706dbaf6c65da83deea2203574eb7ce42281" dependencies = [ "anyhow", "base64 0.21.7", @@ -4386,9 +4386,9 @@ dependencies = [ [[package]] name = "swc_config" -version = "0.1.12" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ada712ac5e28a301683c8af957e8a56deca675cbc376473dd207a527b989efb5" +checksum = "7be1a689e146be1eae53139482cb061dcf0fa01dff296bbe7b96fff92d8e2936" dependencies = [ "anyhow", "indexmap 2.2.6", @@ -4401,9 +4401,9 @@ dependencies = [ [[package]] name = "swc_config_macro" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b2574f75082322a27d990116cd2a24de52945fc94172b24ca0b3e9e2a6ceb6b" +checksum = "7c5f56139042c1a95b54f5ca48baa0e0172d369bcc9d3d473dad1de36bae8399" dependencies = [ "proc-macro2", "quote", @@ -4413,9 +4413,9 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.90.31" +version = "0.91.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06abbb96671d9fb89f051609242b6acb9ddde9e6ff6325f49fce453d96a4c533" +checksum = "928db865b085ffb7fb4b41eefebb9a49223f2130e7acaf994131cebabff2eca9" dependencies = [ "swc", "swc_atoms", @@ -4450,9 +4450,9 @@ dependencies = [ [[package]] name = "swc_css_ast" -version = "0.140.21" +version = "0.140.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a930397de06e2d10d5042d927993af9e09e7824ff84b7d4d7b4a663e7c63e55d" +checksum = "be69b267990e9727881125d39b3a2b8204bb2f85b9ece2ad3e212a1fe5c79bea" dependencies = [ "is-macro", "string_enum", @@ -4462,9 +4462,9 @@ dependencies = [ [[package]] name = "swc_css_codegen" -version = "0.151.31" +version = "0.151.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dfdbd0d5eeb7b4cb4193d49aad0c1f1d8561b0533607992505a7c4a11dce4e8" +checksum = "dc65d732bd6fd1757a14dc4636b762d9224fc83f1f978b6a5840b843a3964bde" dependencies = [ "auto_impl", "bitflags 2.5.0", @@ -4479,9 +4479,9 @@ dependencies = [ [[package]] name = "swc_css_codegen_macros" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0db1d634bcd2df2b694e2bf9320b8f808db3451e35d70e36252966b551a11ef4" +checksum = "de2ece8c7dbdde85aa1bcc9764c5f41f7450d8bf1312eac2375b8dc0ecbc13d7" dependencies = [ "proc-macro2", "quote", @@ -4491,9 +4491,9 @@ dependencies = [ [[package]] name = "swc_css_compat" -version = "0.27.32" +version = "0.27.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c8c4ffbda70abf13435778820470a804619bd1f33e6d11412a7de595ebcfbbb" +checksum = "c3973cc69eb96e64798f506fe57c5ad1d9a24fd7cf870250144e110d000ce045" dependencies = [ "bitflags 2.5.0", "once_cell", @@ -4508,9 +4508,9 @@ dependencies = [ [[package]] name = "swc_css_minifier" -version = "0.116.32" +version = "0.116.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc7000b4de2dfbd04d8f2a1cc99046b8594fd9cd67fc9593f07df5425a508f75" +checksum = "1bee9bb889f46af0e7426ace32cc2150d4e56f1a3376377d9ed51101bea29d35" dependencies = [ "serde", "swc_atoms", @@ -4522,9 +4522,9 @@ dependencies = [ [[package]] name = "swc_css_modules" -version = "0.29.34" +version = "0.29.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "209966e658fb11773a8d14c004554fdc667f6d44128942c47f3d0195cf483613" +checksum = "33a367c7ec6afd24bb3fcc2df95a2adf5d7462367d5b13afd8e43a7beba44358" dependencies = [ "rustc-hash", "serde", @@ -4538,9 +4538,9 @@ dependencies = [ [[package]] name = "swc_css_parser" -version = "0.150.30" +version = "0.150.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecf8cfbef4c0b847829ca1399d762e7e29da3c9fe6593670145fd222252eab6f" +checksum = "174995d62f066e4a4091c03ce9d35233cf8a2e23d729c2041cd5c2b3e2af2d1e" dependencies = [ "lexical", "serde", @@ -4551,9 +4551,9 @@ dependencies = [ [[package]] name = "swc_css_prefixer" -version = "0.153.35" +version = "0.153.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25c08c9394e9d314f4d7995653e7ef7bc9563aff1cb736457ed9009e278d72b9" +checksum = "12416e97bced06666368f3cf7801abacb1a8962c9a4b9b2924faa4f45dc512aa" dependencies = [ "once_cell", "preset_env_base", @@ -4568,9 +4568,9 @@ dependencies = [ [[package]] name = "swc_css_utils" -version = "0.137.21" +version = "0.137.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ac61660cd182bbb0fc53ee86f470e8bba6f5b0f1d85e44bf4ff9dfa2c862a12" +checksum = "a890e543134dc78ac46d0ffce3028d37b639f8854f25aaef67178111459ba021" dependencies = [ "once_cell", "serde", @@ -4583,9 +4583,9 @@ dependencies = [ [[package]] name = "swc_css_visit" -version = "0.139.21" +version = "0.139.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2bc4deb5540e3869f74e09997b2dd9e1d7b3f750ba2c910f88041f8027868c5" +checksum = "d5f0f267339cff49928e87b68ba453e85808eb11d660c720b3eb9c1c8510ad7a" dependencies = [ "serde", "swc_atoms", @@ -4596,9 +4596,9 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.112.6" +version = "0.113.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70656acd47c91918635f1e8589963428cb3170975b71d786c79fb7a25605f687" +checksum = "cae9f905b3485ab348bf9009f71852f27c560d28a0d1f1ec69f0640b86eb1adc" dependencies = [ "bitflags 2.5.0", "bytecheck", @@ -4611,14 +4611,14 @@ dependencies = [ "string_enum", "swc_atoms", "swc_common", - "unicode-id", + "unicode-id-start", ] [[package]] name = "swc_ecma_codegen" -version = "0.148.13" +version = "0.149.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9ae864cb69934f8753b9cbbad803a0ee1b0759f5b87c219db0a12e8d03fa86a" +checksum = "4fef147127a2926ca26171c7afcbf028ff86dc543ced87d316713f25620a15b9" dependencies = [ "memchr", "num-bigint", @@ -4635,9 +4635,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen_macros" -version = "0.7.4" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "394b8239424b339a12012ceb18726ed0244fce6bf6345053cb9320b2791dcaa5" +checksum = "090e409af49c8d1a3c13b3aab1ed09dd4eda982207eb3e63c2ad342f072b49c8" dependencies = [ "proc-macro2", "quote", @@ -4647,9 +4647,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_bugfixes" -version = "0.4.17" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8731bec087336f7ed1cd4d4c082a6f7b7b9072ac5fc6f6379b6f98520a0e8303" +checksum = "47dad0d8b1c4ca3264a8c5ac59a10127e4f1c3ec5ed271692c8897228f306d05" dependencies = [ "swc_atoms", "swc_common", @@ -4664,9 +4664,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_common" -version = "0.4.13" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b06844b66a86b8f3bad66888500fd8fe1e4ac09612c5ae0946ca3f77b81f6b0" +checksum = "d888bcaea9c3b8178ea4abf65adf64457a95a5dd3a3c109a69e02c3c38878e96" dependencies = [ "swc_common", "swc_ecma_ast", @@ -4677,9 +4677,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2015" -version = "0.4.17" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7646243203205d2409a891b998d4d30b7a4563a57429da1cbeabd03f18e506b2" +checksum = "248532f9ae603be6bf4763f66f74ad0dfd82d6307be876ccf4c5d081826a1161" dependencies = [ "arrayvec", "indexmap 2.2.6", @@ -4703,9 +4703,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2016" -version = "0.4.16" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c75e868ae64fe2625c8aae1f929bae734500ae336d37731f6d4bdf66b8e3b8d3" +checksum = "8d7222c8114ae47fb2e46a65f426b125edab523192e835aecbe3136541f96500" dependencies = [ "swc_atoms", "swc_common", @@ -4720,9 +4720,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2017" -version = "0.4.16" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9335b27e554e21db7cd541bcee1b5a58b5994439d1a2cb1c9188a3a557548d3" +checksum = "8ccdc725616ef5a558fb905b991cf328a3a36a4d1b8423173708a02568077a14" dependencies = [ "serde", "swc_atoms", @@ -4738,9 +4738,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2018" -version = "0.4.16" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66be32a60872762335524766f0afca4900699e1fc7ab14d87567e0e9b3d95cc2" +checksum = "4a6c329c3980fb20c6c3f7f2afc94975bfe640d53dbb90b74a4707a514f16882" dependencies = [ "serde", "swc_atoms", @@ -4757,9 +4757,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2019" -version = "0.4.16" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a984708b06d662df1c10c2fc06bf98562c6ea3bb93c0e4d5491ee8e61c08e00" +checksum = "f1934f5021e80f6b76e5e0bd06e331d719eb9541c13cb5c128a2b994931952a4" dependencies = [ "swc_atoms", "swc_common", @@ -4773,9 +4773,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2020" -version = "0.4.16" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8b310227bbafd12dbe717c1969bf5095e9b6aff563cea3e9ff6e46371971293" +checksum = "0aeddeba198fef2e0ed2bc4a5a0b412a04063f062dc47f93e191b492fc07db4f" dependencies = [ "serde", "swc_atoms", @@ -4791,9 +4791,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2021" -version = "0.4.16" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab566642dff583a16b7b188cf9effc6ae603ea2172769f7a3e7fc1aaf41b67b3" +checksum = "288ad7b2cc410dc4fb08687915c1f588f6a714d737e0a4d4128657124902bcae" dependencies = [ "swc_atoms", "swc_common", @@ -4807,9 +4807,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2022" -version = "0.4.16" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62fcfa41b83014ee338c219c446e4ac7f66620706d871b1234d68f990a26225b" +checksum = "5fb9ab1987e7f9959e31f4a5f9c617ad640a01d8c3c6f02293ad2835adac7790" dependencies = [ "swc_atoms", "swc_common", @@ -4826,9 +4826,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es3" -version = "0.4.16" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3678f2454374d8aefe0997fa32089dd2c3f06d20ecaa0d1fa30c0d3e9871c79b" +checksum = "bc88d41bf1d86c163997a48b10ad47a40d2d0c8b9c6ee03ead151d0022975789" dependencies = [ "swc_common", "swc_ecma_ast", @@ -4841,9 +4841,9 @@ dependencies = [ [[package]] name = "swc_ecma_ext_transforms" -version = "0.113.13" +version = "0.114.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71d02e315207f4c6fd0a1a475039b2874392e46a04d1a297c9c66ef0082d9fce" +checksum = "259b7b69630aafde63c6304eeacb93fd54619cbdb199c978549acc76cd512d76" dependencies = [ "phf", "swc_atoms", @@ -4855,9 +4855,9 @@ dependencies = [ [[package]] name = "swc_ecma_lints" -version = "0.92.19" +version = "0.93.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12d3615603b9719f33180080ccada04d0cb6a077d90c958a71d746c7b015c040" +checksum = "e66af960e41704f081a2e5dd012c304f9e74bacf8846d70f5c653b32b7f7845a" dependencies = [ "auto_impl", "dashmap", @@ -4875,9 +4875,9 @@ dependencies = [ [[package]] name = "swc_ecma_loader" -version = "0.45.23" +version = "0.45.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6732100aba9bec438fcff857ab8db5e5d3b64b42a522aec7c388d8c98a36d22a" +checksum = "92c68f934bd2c51f29c4ad0bcae09924e9dc30d7ce0680367d45b42d40338a67" dependencies = [ "anyhow", "dashmap", @@ -4897,9 +4897,9 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.192.22" +version = "0.193.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1b038d6effbed5103d38460e6b9f5006fd6ffa91e827efdf78953b0e97d3895" +checksum = "ba7b29710862eb0266dc7bf3360ceac33d6af6b999b89906db9e5b6aefa857c2" dependencies = [ "arrayvec", "indexmap 2.2.6", @@ -4931,9 +4931,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.143.10" +version = "0.144.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b919bb9ae5e1c8c54fb109f7e94b4a00185bd255c1238ba823e8102601e2133" +checksum = "0499e69683ae5d67a20ff0279b94bc90f29df7922a46331b54d5dd367bf89570" dependencies = [ "either", "new_debug_unreachable", @@ -4953,9 +4953,9 @@ dependencies = [ [[package]] name = "swc_ecma_preset_env" -version = "0.206.17" +version = "0.207.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e30d4cf2d63c2094d22a2778537353ea817f91c42c2e3bafc88cbe064b1f681" +checksum = "b5969314bf66a4cca45b0401689dd0c74e568c69243ce46f2342d59219e1283c" dependencies = [ "anyhow", "dashmap", @@ -4978,9 +4978,9 @@ dependencies = [ [[package]] name = "swc_ecma_quote_macros" -version = "0.54.13" +version = "0.55.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49a0e789f5cced50904847f0fefef0f416156c12f0e0cf8b054f6fba6233023a" +checksum = "cfc3a759d2885a78cd2a6ac1c1865eb6be02cafe35fbb6c5abd3720d0fca559a" dependencies = [ "anyhow", "proc-macro2", @@ -4995,9 +4995,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "0.229.17" +version = "0.230.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52b22e7877d623332da5f2a93c204e808091ab2da1c060f794eaea66506fb530" +checksum = "b37b4301415b83165109b94c99f9ac62b38fd1da625bfc830883d65d29a473f9" dependencies = [ "swc_atoms", "swc_common", @@ -5015,9 +5015,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.137.16" +version = "0.138.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69e9a23d6af398b6efd17bbdad2cfa580102f6c560611f85c63b48f76ffe8f0c" +checksum = "6511cbe8c60eced9a8e77b66aadbda26424f14a1662c68c17aeb73ac78ad83c2" dependencies = [ "better_scoped_tls", "bitflags 2.5.0", @@ -5039,9 +5039,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_classes" -version = "0.126.16" +version = "0.127.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47af84e64f0216f110839f5552a615d07ed74b45757927f29482700966ab4e97" +checksum = "53043d81678f3c693604eeb1d1f0fe6ba10f303104a31b954dbeebed9cadf530" dependencies = [ "swc_atoms", "swc_common", @@ -5053,9 +5053,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_compat" -version = "0.163.17" +version = "0.164.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "895101f18b39009b8d27f231222e6459a0e71151ba0b3ddf934373bf657602b2" +checksum = "7d4e2942c5d8b7afdf81b8d1eec2f4a961aa9fc89ab05ebe5cbd0f6066b60afc" dependencies = [ "arrayvec", "indexmap 2.2.6", @@ -5089,9 +5089,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_macros" -version = "0.5.4" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17e309b88f337da54ef7fe4c5b99c2c522927071f797ee6c9fb8b6bf2d100481" +checksum = "500a1dadad1e0e41e417d633b3d6d5de677c9e0d3159b94ba3348436cdb15aab" dependencies = [ "proc-macro2", "quote", @@ -5101,9 +5101,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_module" -version = "0.180.17" +version = "0.181.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82c53f9d5e7384e840f78d096f0ed2e8cfd38486adafb282ef8550420cd44890" +checksum = "92496bb7806b5c6602bcb08a9c09c61b12232a44da605f9e50e27ecffb603822" dependencies = [ "Inflector", "anyhow", @@ -5128,9 +5128,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.198.17" +version = "0.199.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86789174146707d78c086cee25868624bdfef924bb535ea3fc42f53fa426d4c0" +checksum = "32ea30b3df748236c619409f222f0ba68ebeebc08dfff109d2195664a15689f9" dependencies = [ "dashmap", "indexmap 2.2.6", @@ -5153,9 +5153,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_proposal" -version = "0.171.17" +version = "0.172.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "278fec72878ab88f63cf797b33091045d29789dfe13c4051ab7ea6731c4b7ffd" +checksum = "7fbc414d6a9c5479cfb4c6e92fcdac504582bd7bc89a0ed7f8808b72dc8bd1f0" dependencies = [ "either", "rustc-hash", @@ -5173,9 +5173,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "0.183.17" +version = "0.184.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "762dad12edcdca424213354518ce60bc3f03a026f8e1990b11459311cef04c91" +checksum = "565a76c4ca47ce31d78301c0beab878e4c2cb4f624691254d834ec8c0e236755" dependencies = [ "base64 0.21.7", "dashmap", @@ -5197,9 +5197,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_typescript" -version = "0.188.17" +version = "0.189.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d6824fcd8d32ab2e90745a408f71548bd081bf4522d32617745ac1ea243de9c" +checksum = "e209026c1d3c577cafac257d87e7c0d23119282fbdc8ed03d7f56077e95beb90" dependencies = [ "ryu-js", "serde", @@ -5214,9 +5214,9 @@ dependencies = [ [[package]] name = "swc_ecma_usage_analyzer" -version = "0.23.13" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21ccc0ff427471b70e48f265854a2e0843ef8429c729009898bea993f300fa77" +checksum = "98a693898bd44782a234d9a4122d52b93accf447282d08c2364eb739ae864154" dependencies = [ "indexmap 2.2.6", "rustc-hash", @@ -5231,9 +5231,9 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.127.15" +version = "0.128.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68f83263f449935d33f86b8ab17c88a13bc175a87a742752ebcc94be2006ab25" +checksum = "fe5242670bc74e0a0b64b9d4912b37be36944517ce0881314162aeb4381272c3" dependencies = [ "indexmap 2.2.6", "num_cpus", @@ -5250,9 +5250,9 @@ dependencies = [ [[package]] name = "swc_ecma_visit" -version = "0.98.7" +version = "0.99.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93692bdcdbb63db8f5e10fea5d202b5487cb27eb443aec424f4335c88f9864af" +checksum = "28a6ce28ad8e591f8d627f1f9cb26b25e5d83052a9bc1b674d95fc28040cfa98" dependencies = [ "num-bigint", "swc_atoms", @@ -5264,9 +5264,9 @@ dependencies = [ [[package]] name = "swc_emotion" -version = "0.72.8" +version = "0.72.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c43a5946f5e0ea03341b23786e43e3fa07eaa014f03fb39cf584b02c38e9c80c" +checksum = "136f11895d7d6a6a82e35095391339bcc288baa7a6b88e858c36e0dcd323d60c" dependencies = [ "base64 0.13.1", "byteorder", @@ -5299,9 +5299,9 @@ dependencies = [ [[package]] name = "swc_error_reporters" -version = "0.17.19" +version = "0.17.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3329e73f159a3d38d4cd5f606a0918eeff39f5bbdbdafd9b6fecb290d2e9a32d" +checksum = "72100a5f7b0c178adf7bcc5e7c8ad9d4180f499a5f5bae9faf3f417c7cbc4915" dependencies = [ "anyhow", "miette 4.7.1", @@ -5312,9 +5312,9 @@ dependencies = [ [[package]] name = "swc_fast_graph" -version = "0.21.20" +version = "0.21.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa43c68166a88e233f241976dc3291c30471385fd1019d1fa5660ac503520110" +checksum = "f3fdd64bc3d161d6c1ea9a8ae5779e4ba132afc67e7b8ece5420bfc9c6e1275d" dependencies = [ "indexmap 2.2.6", "petgraph", @@ -5324,9 +5324,9 @@ dependencies = [ [[package]] name = "swc_html" -version = "0.137.18" +version = "0.138.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c89e3a5670497185b704d642ee11cccb5cbfa218faaada79e8896e92e74961ee" +checksum = "41773ed770e894c8a0ad38f3b7705b22c24e3884db18d761bb60098de535c4a6" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -5336,9 +5336,9 @@ dependencies = [ [[package]] name = "swc_html_ast" -version = "0.33.19" +version = "0.33.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "571569889610cf68ad0c9ad31d45f8b7480ad8ed1cf9107a96682be24298b006" +checksum = "59957df8048be691db04e6e358b29c6ff1274cd60ee2b4c2141e1d90b598d24e" dependencies = [ "is-macro", "string_enum", @@ -5348,9 +5348,9 @@ dependencies = [ [[package]] name = "swc_html_codegen" -version = "0.42.24" +version = "0.42.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "082dfc12553f92358d70a42d9a49e37d3686f426bacfc959f733631657a1657a" +checksum = "a4c28899c6d01596124686dae5d139412488f4066d013a6c5691e497f5e9a98f" dependencies = [ "auto_impl", "bitflags 2.5.0", @@ -5364,9 +5364,9 @@ dependencies = [ [[package]] name = "swc_html_codegen_macros" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41912779c72f8381deb1420ab7dab842fde772aeae06f4f0e4a93bd509d4ecfe" +checksum = "e593a6cbb3a49230fbab3171d4493f7d0fb1e20a34d9a9f9e972550690408ba8" dependencies = [ "proc-macro2", "quote", @@ -5376,9 +5376,9 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "0.134.18" +version = "0.135.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa632e00494f55e39bd499fadccda9afdd49c25ee80c2c96afb7182c19daf88d" +checksum = "0bd0aa7d09c5fc72d9f7319bf9a4eeaf7084695fe85e3ff71976ae3d50f485b3" dependencies = [ "once_cell", "serde", @@ -5405,9 +5405,9 @@ dependencies = [ [[package]] name = "swc_html_parser" -version = "0.39.24" +version = "0.39.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48f0d115e1cc5b20639fea87bf80b5b2ecfa626f8f609cb2d244651417f1fbbc" +checksum = "a06cda5fcfd7c979a473be215cb7263e13bb7707bec46d0b6fbf364d203eea2d" dependencies = [ "swc_atoms", "swc_common", @@ -5417,9 +5417,9 @@ dependencies = [ [[package]] name = "swc_html_utils" -version = "0.18.19" +version = "0.18.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e86804c99c0208dd0fff09f3b7d2633e32145333ae1e71d113d81adef5eba5f" +checksum = "406d1fcf69915a6726065060a9e85e7f36d66239708901d9bd0ad4d4b4e935a8" dependencies = [ "once_cell", "serde", @@ -5430,9 +5430,9 @@ dependencies = [ [[package]] name = "swc_html_visit" -version = "0.33.19" +version = "0.33.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "640065747e60336a9f1ec604e0f76c574613d3288d2b791c191317ab1cbaf876" +checksum = "cffd11c6331e830a6f954597edd612d9393b6a4edb6e88004e5d7e84ee73b570" dependencies = [ "serde", "swc_atoms", @@ -5443,9 +5443,9 @@ dependencies = [ [[package]] name = "swc_macros_common" -version = "0.3.9" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50176cfc1cbc8bb22f41c6fe9d1ec53fbe057001219b5954961b8ad0f336fce9" +checksum = "91745f3561057493d2da768437c427c0e979dff7396507ae02f16c981c4a8466" dependencies = [ "proc-macro2", "quote", @@ -5454,9 +5454,9 @@ dependencies = [ [[package]] name = "swc_node_comments" -version = "0.20.19" +version = "0.20.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd75c635e4b54961c1c8dc693bb16eb70497eb8a2564f303089a9a66e81ed7ae" +checksum = "d39218bffecf32538d94a22791a12ff6f65e618edcc632d42e065a4e9c773065" dependencies = [ "dashmap", "swc_atoms", @@ -5476,9 +5476,9 @@ dependencies = [ [[package]] name = "swc_plugin_proxy" -version = "0.41.6" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "012e5996e3fe64805342b6e31a79d826402bbe4eed35be6a9366e54e41f5d75d" +checksum = "98974702046356b67da841a8de561480fd75f963f5d406eee40d690e014e4b55" dependencies = [ "better_scoped_tls", "rkyv", @@ -5490,9 +5490,9 @@ dependencies = [ [[package]] name = "swc_plugin_runner" -version = "0.106.13" +version = "0.107.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3fe0f8743615139eed21376c94d8201be331040c8999e9a7c86a43d0ca2ff8b" +checksum = "73640537e0967a88a537c853de4a41ba6cdf77bfff1999f7c6c449e5bc550eed" dependencies = [ "anyhow", "enumset", @@ -5506,6 +5506,7 @@ dependencies = [ "swc_plugin_proxy", "tokio", "tracing", + "virtual-fs", "wasmer", "wasmer-cache", "wasmer-compiler-cranelift", @@ -5514,9 +5515,9 @@ dependencies = [ [[package]] name = "swc_timer" -version = "0.21.21" +version = "0.21.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e75ce0373fd1b75a021073d796201d5af15106857fc0a801e31379e9e04891e9" +checksum = "0c05c13aecc7a128f86273004f57b5964a6e8828a90e542f362deaed7985504f" dependencies = [ "tracing", ] @@ -5534,9 +5535,9 @@ dependencies = [ [[package]] name = "swc_visit" -version = "0.5.10" +version = "0.5.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f5b3e8d1269a7cb95358fed3412645d9c15aa0eb1f4ca003a25a38ef2f30f1b" +checksum = "043d11fe683dcb934583ead49405c0896a5af5face522e4682c16971ef7871b9" dependencies = [ "either", "swc_visit_macros", @@ -5544,9 +5545,9 @@ dependencies = [ [[package]] name = "swc_visit_macros" -version = "0.5.11" +version = "0.5.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33fc817055fe127b4285dc85058596768bfde7537ae37da82c67815557f03e33" +checksum = "4ae9ef18ff8daffa999f729db056d2821cd2f790f3a11e46422d19f46bb193e7" dependencies = [ "Inflector", "proc-macro2", @@ -5915,6 +5916,16 @@ dependencies = [ "tracing-log", ] +[[package]] +name = "triomphe" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "859eb650cfee7434994602c3a68b25d77ad9e68c8a6cd491616ef86661382eb3" +dependencies = [ + "serde", + "stable_deref_trait", +] + [[package]] name = "trybuild" version = "1.0.91" diff --git a/Cargo.toml b/Cargo.toml index c990fbdd0e83..2f7b8a0aaa80 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,16 +54,16 @@ napi-derive = { version = "2" } tikv-jemallocator = { version = "=0.5.4", features = ["disable_initial_exec_tls"] } # Must be pinned with the same swc versions -rkyv = { version = "=0.7.42" } # synced with swc wasm plugin -styled_components = { version = "=0.96.8" } -swc_config = { version = "=0.1.12" } -swc_core = { version = "=0.90.31", default-features = false } -swc_ecma_minifier = { version = "=0.192.22", default-features = false } -swc_emotion = { version = "=0.72.8" } -swc_error_reporters = { version = "=0.17.19" } -swc_html = { version = "=0.137.18" } -swc_html_minifier = { version = "=0.134.18" } -swc_node_comments = { version = "=0.20.19" } +rkyv = { version = "=0.7.44" } # synced with swc wasm plugin +styled_components = { version = "=0.96.11" } +swc_config = { version = "=0.1.13" } +swc_core = { version = "0.91.4", default-features = false } +swc_ecma_minifier = { version = "0.193.3", default-features = false } +swc_emotion = { version = "=0.72.9" } +swc_error_reporters = { version = "=0.17.20" } +swc_html = { version = "=0.138.1" } +swc_html_minifier = { version = "=0.135.1" } +swc_node_comments = { version = "=0.20.20" } [profile.dev] codegen-units = 16 # debug build will cause runtime panic if codegen-unints is default diff --git a/crates/rspack_plugin_javascript/src/visitors/swc_visitor/hygiene.rs b/crates/rspack_plugin_javascript/src/visitors/swc_visitor/hygiene.rs index 83d23a047128..4301e5a88c33 100644 --- a/crates/rspack_plugin_javascript/src/visitors/swc_visitor/hygiene.rs +++ b/crates/rspack_plugin_javascript/src/visitors/swc_visitor/hygiene.rs @@ -2,6 +2,7 @@ use swc_core::common::Mark; use swc_core::ecma::transforms::base::hygiene::{hygiene_with_config, Config}; use swc_core::ecma::visit::Fold; +#[allow(deprecated)] pub fn hygiene(keep_class_names: bool, top_level_mark: Mark) -> impl Fold { hygiene_with_config(Config { keep_class_names, diff --git a/packages/rspack-test-tools/tests/__snapshots__/Config.test.js.snap b/packages/rspack-test-tools/tests/__snapshots__/Config.test.js.snap index a45c95dba2b0..07e005e95842 100644 --- a/packages/rspack-test-tools/tests/__snapshots__/Config.test.js.snap +++ b/packages/rspack-test-tools/tests/__snapshots__/Config.test.js.snap @@ -44,54 +44,54 @@ Object { exports[`config config/builtins/css-modules-local-ident-name-hash exported tests css modules localIdentName with hash 1`] = ` Object { - "#": "_2d1f13069a34dadb8112", - "##": "ae8301fd6f3598539bfd", - "#.#.#": "_1c997a569a07f2420708", - "#fake-id": "d3e8bdca9f976f125db0", - "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "cf064fddad4f1ee12a13", - "-a-b-c-": "_3009825ac55fd922e1d4", - "-a0-34a___f": "_2470cf17671bc0f04fb9", - ".": "_45953b92c963cd9365ee", - "123": "b83ce8234973aca76caf", - "1a2b3c": "eca4a6468c54eaabda5f", - ":)": "_9cd9dacf371a665c5e39", - ":\`(": "_849c0b45e753bfe7e332", - ":hover": "_0eec8dbaeb3d52c7e318", - ":hover:focus:active": "cebbf8d9d82b804826ba", - "<><<<>><>": "d0504329c86bf6aaf83f", - "
": "_1f3da2d9abca032e8688", - "?": "d53002e1233f2049f1d4", - "@": "_3604bb5089512604fd6d", - "B&W?": "_29a1f492830adeef54f9", - "[attr=value]": "eb2787a6b2019adfdf12", - "_": "e0c21379fbaec4cf8e76", - "_test": "_701db8dd042b793cda43", - "className": "d42832db1967a6f6161f", - "f!o!o": "_1a4bc095be932bd43d82", - "f'o'o": "b419c7cea20ab4e4c57f", - "f*o*o": "bc01ebf6803f206edbdc", - "f+o+o": "a330ce191c89fbe8ef59", - "f/o/o": "a507c95c5be333d80af6", - "f\\\\o\\\\o": "_8ae0554ce544e3013a32", - "foo.bar": "abed3de09fc05d3400f8", - "foo/bar": "_57fbbed34c6039e5045b", - "foo/bar/baz": "_66e03c108771225ae79a", - "foo\\\\bar": "_48beb53984c701be5645", - "foo\\\\bar\\\\baz": "f9e76b11c67b5115ebdb", - "f~o~o": "_451cb3cda3d4bf8ea8f3", - "m_x_@": "_9a7665e6cf83142e1b3c", - "someId": "_9d834034f45a6a2c699b", - "subClass": "fe69f3ebba3ba63e167e", - "test": "b7fc104110738641f152", - "{}": "a7a93ea70d691fba54a2", - "©": "d9e5b239186637532208", - "“‘’”": "_56e0bf6b2fa8a18ff54e", - "⌘⌥": "_6f25eff10f3aecf1d2de", - "☺☃": "c00a0e3463f69bf799ae", - "♥": "_4d9b71f741c330bc24d0", - "𝄞♪♩♫♬": "a01c68c82acee141b0b9", - "💩": "e3663ae314f6186e799a", - "😍": "bfb8a2d9978df6976636", + "#": "_8ebd6d7db31b792949f5", + "##": "c70874575e73159e22c1", + "#.#.#": "_6157e6c77171d79e9718", + "#fake-id": "df3aaec040afb01f690c", + "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.": "_073da91609b5dd80360e", + "-a-b-c-": "_4fda86c80892f2d1f181", + "-a0-34a___f": "b95966ff52d1f2824658", + ".": "e0fd41b73ceed4fc3f87", + "123": "ca0e114009d4b01c71ac", + "1a2b3c": "_4c2940ec41570bcc8968", + ":)": "_6bdad88049c2dbf701f1", + ":\`(": "_536e43c29fe4f841fa32", + ":hover": "_6852606d97e8b945b5a0", + ":hover:focus:active": "aaf40b90cf62d56f35b2", + "<><<<>><>": "_12eca34516b60485d6ec", + "
": "c475bdd44f2bbd196a2e", + "?": "_88ad2311170df758669d", + "@": "_517280d166332b3d6e0e", + "B&W?": "_0150297f6968c23a8e75", + "[attr=value]": "b9464c995ed6dabd1d97", + "_": "_26316216f84c3636dc39", + "_test": "_41807023f6e3037c7319", + "className": "_4100089e883b18a80bec", + "f!o!o": "_9653a4b47e158a13a3ea", + "f'o'o": "_7b670c9668a6d974eefd", + "f*o*o": "_703de63e5996ce46f34c", + "f+o+o": "_50db48029b94ebbf3c58", + "f/o/o": "e7b5086d6ab6c2ccb7f7", + "f\\\\o\\\\o": "fb23ef2cb51ac79a835f", + "foo.bar": "_9da124ebba2a84c14bde", + "foo/bar": "_95a8903cdd93f1e02029", + "foo/bar/baz": "e25e1a01ceb0dc212023", + "foo\\\\bar": "a47aec60417098406ba1", + "foo\\\\bar\\\\baz": "_5a9b362a9f2b0bf4ef79", + "f~o~o": "ec66a170e60224092af2", + "m_x_@": "d6e372cd00aca0f2feb1", + "someId": "fe6848fd4815bc90c863", + "subClass": "e513cb318862573353af", + "test": "f802dcceee7e59a6928b", + "{}": "_76def9ac97b1fccb7ccc", + "©": "_59d3cad3aaed951c6442", + "“‘’”": "c8ef7e4a7b11dc4be27c", + "⌘⌥": "_3897d915ddff6cc3c5f5", + "☺☃": "e8b7b86cc96e622243d4", + "♥": "_6a5404cbd6b721406e59", + "𝄞♪♩♫♬": "cff15b375dfc275f06ac", + "💩": "_5066e869fb41fe49ef02", + "😍": "b9f2905bc4b6e38b3398", } `; diff --git a/packages/rspack-test-tools/tests/builtinCases/plugin-javascript/builtins-define/snapshot/output.snap.txt b/packages/rspack-test-tools/tests/builtinCases/plugin-javascript/builtins-define/snapshot/output.snap.txt index a5daf1479126..a03b661efd89 100644 --- a/packages/rspack-test-tools/tests/builtinCases/plugin-javascript/builtins-define/snapshot/output.snap.txt +++ b/packages/rspack-test-tools/tests/builtinCases/plugin-javascript/builtins-define/snapshot/output.snap.txt @@ -46,7 +46,7 @@ try { error_count += 1; MEMBER_PROPS_SHOULD_DO_NOT_CONVERTED.REGEXP.REGEXP; error_count += 1; -} catch (err1) {} +} catch (err) {} assert.deepStrictEqual(error_count, 2); assert.deepStrictEqual([ 300, @@ -163,7 +163,7 @@ try { error_count += 1; P4.P1; error_count += 1; -} catch (err2) {} +} catch (err) {} assert.deepStrictEqual(error_count, 3); assert.deepStrictEqual("302".P1, undefined); assert.deepStrictEqual("302".P3, undefined); @@ -182,7 +182,7 @@ try { error_count += 1; DO_NOT_CONVERTED4; error_count += 1; -} catch (err3) {} +} catch (err) {} assert.deepStrictEqual(error_count, 4); let DO_NOT_CONVERTED4 = 204; const USELESS = { @@ -202,7 +202,7 @@ const USELESS = { error_count += 1; SHOULD_BE_CONVERTED_IN_UNDEFINED_BLOCK; error_count += 1; -} catch (err4) {} +} catch (err) {} assert.deepStrictEqual(error_count, 5); assert.deepStrictEqual(USELESS, { ZERO: 0 @@ -217,7 +217,7 @@ try { error_count += 1; M1; error_count += 1; -} catch (err5) {} +} catch (err) {} assert.deepStrictEqual(error_count, 6); // try { // error_count += 1; @@ -237,7 +237,7 @@ try { error_count += 1; aa = 205; error_count += 1; -} catch (err6) {} +} catch (err) {} assert.deepStrictEqual(error_count, 7); assert.deepStrictEqual(true, true); assert.deepStrictEqual(false, false); @@ -245,7 +245,7 @@ try { error_count += 1; A1.A2.A3; error_count += 1; -} catch (err7) {} +} catch (err) {} assert.deepStrictEqual(error_count, 8); // just make sure `MemberExpr` fold success. console.log(console.log(console.log)); // TODO: recursive diff --git a/packages/rspack-test-tools/tests/builtinCases/plugin-javascript/provide/snapshot/output.snap.txt b/packages/rspack-test-tools/tests/builtinCases/plugin-javascript/provide/snapshot/output.snap.txt index e7a33d20ff57..4d4c71a6fdd7 100644 --- a/packages/rspack-test-tools/tests/builtinCases/plugin-javascript/provide/snapshot/output.snap.txt +++ b/packages/rspack-test-tools/tests/builtinCases/plugin-javascript/provide/snapshot/output.snap.txt @@ -55,7 +55,7 @@ function defaultClearTimeout() { } else { cachedClearTimeout = defaultClearTimeout; } - } catch (e1) { + } catch (e) { cachedClearTimeout = defaultClearTimeout; } })();