diff --git a/.changeset/eager-frogs-rest.md b/.changeset/eager-frogs-rest.md new file mode 100644 index 00000000..a3a951f6 --- /dev/null +++ b/.changeset/eager-frogs-rest.md @@ -0,0 +1,5 @@ +--- +"@devup-ui/wasm": patch +--- + +Optimize class gen logic diff --git a/Cargo.lock b/Cargo.lock index 6162885e..de341f25 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -647,9 +647,9 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.82.2" +version = "0.82.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01443e3e95c7916a6a260335ebd4dee8775ad5e2f285adcf49bd35ddff49cf4d" +checksum = "e887a8496b18a4bce4a760ae2dbd50e5137fa2a27ee99087797d7b8e860a7b5c" dependencies = [ "allocator-api2", "bumpalo", @@ -660,9 +660,9 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.82.2" +version = "0.82.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ee82b1e75533bd63802583d42cff22173e799bff19681fbd300a254585cf6b8" +checksum = "931e1fae25d9669204681577381f6e90d2c9fe502d306c862f46ff72bcef8cf7" dependencies = [ "bitflags", "oxc_allocator", @@ -676,9 +676,9 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.82.2" +version = "0.82.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a119414d0ea2d4ead85d7d9095f59a248fa1eb8e0832687016180655fc2b622" +checksum = "5958a8ac69a955048dabcfcbf8af791dbb7f598bbea5bae33243240f3846457c" dependencies = [ "phf", "proc-macro2", @@ -688,9 +688,9 @@ dependencies = [ [[package]] name = "oxc_ast_visit" -version = "0.82.2" +version = "0.82.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f393c0ed3f2750ed971d1da803c6816f9c2e1881d0261d3a7220d67c27fedbf0" +checksum = "95d2ce2cb5be550d7a94fc3b927d4247d69aea57943baafbf6547362831e69a5" dependencies = [ "oxc_allocator", "oxc_ast", @@ -700,9 +700,9 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.82.2" +version = "0.82.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e61bcf7193225c5431684258e6cf45ba30b3b91c1fff4b3e6bde5287a183ab7" +checksum = "d950f4f67648b1995c836bd96ae423cdf6800b2332d1ba5b18fd81166daad2f1" dependencies = [ "bitflags", "itertools 0.14.0", @@ -715,9 +715,9 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.82.2" +version = "0.82.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1496159a953a116baae7e17161c590fb55875b1a4a310121a37305fc02fab4b4" +checksum = "3e252dc98109ed7ee39120255f566ee13f8e6016d86fa38137e99768165f60e7" dependencies = [ "bitflags", "cow-utils", @@ -737,15 +737,15 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.82.2" +version = "0.82.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd798dc264a18b4c472246ca60f4bc9d723e679e57f8b1daa3af65bacccb2987" +checksum = "67b3258dc882e0348934e2a9973cd0d9e3c465642b729842320d23abf835175a" [[package]] name = "oxc_diagnostics" -version = "0.82.2" +version = "0.82.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5a103b0344d5b9bc38db54b2214ae2f45aebf6bc5473ed0a204ae458be8b0a6" +checksum = "5dc24fdf0407c9ecb202efb99fa9870f3623994ae8daae56e696a511894d67ba" dependencies = [ "cow-utils", "oxc-miette", @@ -754,9 +754,9 @@ dependencies = [ [[package]] name = "oxc_ecmascript" -version = "0.82.2" +version = "0.82.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c128f12fc96dc9e9694ea97e49869f1f181f9afc3e90bc94f677d8cb85ecee2" +checksum = "61cfc9801af5b0068e11061ff8100fb38c2ca0875c696aa405b5505d212b5e2f" dependencies = [ "cow-utils", "num-bigint", @@ -769,9 +769,9 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.82.2" +version = "0.82.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25b152c37513a595c4013f1da6c32a5652da2bbeea8dee2c94231be9e29f9511" +checksum = "2bac265e2cd8c77ac8d4230f1538e8ff9f6f5d9e41b9107af58f8d3c4626b028" [[package]] name = "oxc_index" @@ -781,9 +781,9 @@ checksum = "2fa07b0cfa997730afed43705766ef27792873fdf5215b1391949fec678d2392" [[package]] name = "oxc_parser" -version = "0.82.2" +version = "0.82.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78d36a87565a624893fff4c2ed46eafe9dd447a0dd82cbcfaf9b2a52e35a84ba" +checksum = "8b4427e7c4d4507bb4561c113e25bbbb737d03355f311d3fb606f0029fdcb3f6" dependencies = [ "bitflags", "cow-utils", @@ -804,9 +804,9 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.82.2" +version = "0.82.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81876a23eb6e3d951c8d23066d9377cf2b5dd66035b00f38ffdd21b29c2694a1" +checksum = "17ec07cb1081ed5798e2ef7d3e10154784cd1bf47c5170ff3d519d44bc97ad07" dependencies = [ "bitflags", "oxc_allocator", @@ -820,9 +820,9 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.82.2" +version = "0.82.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c371b4202cc754b312d4c88d43dcafbdc53a96b9149a7e708bd310949271dc6d" +checksum = "8191888545927293275ff32593584327dbd2c5805345abba1236f6febe55b567" dependencies = [ "itertools 0.14.0", "oxc_allocator", @@ -856,9 +856,9 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.82.2" +version = "0.82.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8352ac817efc16314a8da4a8f3c73275b0e1d364a2fb4903092e1ac971806229" +checksum = "008d14e804d79adac31c5cb5b27fbfde52055a0cf86276c9b822cfa40b24d75c" dependencies = [ "compact_str", "oxc-miette", @@ -869,9 +869,9 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.82.2" +version = "0.82.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dcec4c2eea751e2823f814ba0e543a1ce64288154b0d784e883d46c216da92f" +checksum = "675313926fe94e71b9cdf6ed0338e0bfb40e827e2b5fd0c65a059aff002e7fa2" dependencies = [ "bitflags", "cow-utils", diff --git a/apps/landing/package.json b/apps/landing/package.json index 0aecc777..e5c7229a 100644 --- a/apps/landing/package.json +++ b/apps/landing/package.json @@ -16,11 +16,11 @@ "@devup-ui/reset-css": "workspace:*", "@mdx-js/loader": "^3.1.0", "@mdx-js/react": "^3.1.0", - "@next/mdx": "^15.4.7", + "@next/mdx": "^15.5.0", "@types/mdx": "^2.0.13", "body-scroll-lock": "3.1.5", "clsx": "^2.1.1", - "next": "^15.4.7", + "next": "^15.5.0", "react": "^19.1.1", "react-dom": "^19.1.1", "react-markdown": "^10.1.0", diff --git a/apps/next/package.json b/apps/next/package.json index 482fc814..77dc77ba 100644 --- a/apps/next/package.json +++ b/apps/next/package.json @@ -12,7 +12,7 @@ "dependencies": { "react": "^19.1.1", "react-dom": "^19.1.1", - "next": "^15.4.7", + "next": "^15.5.0", "@devup-ui/react": "workspace:*" }, "devDependencies": { diff --git a/benchmark/next-chakra-ui/package.json b/benchmark/next-chakra-ui/package.json index 3681f802..6b8d7c04 100644 --- a/benchmark/next-chakra-ui/package.json +++ b/benchmark/next-chakra-ui/package.json @@ -10,9 +10,9 @@ "lint": "next lint" }, "dependencies": { - "@chakra-ui/react": "^3.24.2", + "@chakra-ui/react": "^3.25.0", "@emotion/react": "^11.14.0", - "next": "^15.4.7", + "next": "^15.5.0", "next-themes": "^0.4.6", "react": "^19.1.1", "react-dom": "^19.1.1", diff --git a/benchmark/next-devup-ui/package.json b/benchmark/next-devup-ui/package.json index 008a2310..88e8e973 100644 --- a/benchmark/next-devup-ui/package.json +++ b/benchmark/next-devup-ui/package.json @@ -12,7 +12,7 @@ "dependencies": { "react": "^19.1.1", "react-dom": "^19.1.1", - "next": "^15.4.7", + "next": "^15.5.0", "@devup-ui/react": "workspace:*" }, "devDependencies": { diff --git a/benchmark/next-kuma-ui/package.json b/benchmark/next-kuma-ui/package.json index 5ab84d9d..2d20bf33 100644 --- a/benchmark/next-kuma-ui/package.json +++ b/benchmark/next-kuma-ui/package.json @@ -12,7 +12,7 @@ "dependencies": { "react": "^19.1.1", "react-dom": "^19.1.1", - "next": "^15.4.7", + "next": "^15.5.0", "@kuma-ui/core": "^1.5.9" }, "devDependencies": { diff --git a/benchmark/next-mui/package.json b/benchmark/next-mui/package.json index 32e1a3e7..9cd01cc8 100644 --- a/benchmark/next-mui/package.json +++ b/benchmark/next-mui/package.json @@ -13,7 +13,7 @@ "@emotion/react": "^11.14.0", "@emotion/styled": "^11.14.1", "@mui/material": "7.3.1", - "next": "^15.4.7", + "next": "^15.5.0", "next-themes": "^0.4.6", "react": "^19.1.1", "react-dom": "^19.1.1", diff --git a/libs/css/src/constant.rs b/libs/css/src/constant.rs index 7652e4f0..c58aa4ba 100644 --- a/libs/css/src/constant.rs +++ b/libs/css/src/constant.rs @@ -158,3 +158,13 @@ pub(super) static F_RGBA_RE: Lazy = pub(super) static F_RGB_RE: Lazy = Lazy::new(|| Regex::new(r"rgb\((\d+),(\d+),(\d+)\)").unwrap()); + +pub(super) static N_BASE_ARRAY: [char; 27] = [ + 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', + 't', 'u', 'v', 'w', 'x', 'y', 'z', '_', +]; + +pub(super) static M_BASE_ARRAY: [char; 38] = [ + 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', + 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '_', +]; diff --git a/libs/css/src/lib.rs b/libs/css/src/lib.rs index 430ff445..d7895179 100644 --- a/libs/css/src/lib.rs +++ b/libs/css/src/lib.rs @@ -2,6 +2,7 @@ pub mod class_map; mod constant; pub mod debug; pub mod is_special_property; +mod num_to_nm_base; pub mod optimize_multi_css_value; pub mod optimize_value; pub mod rm_css_comment; @@ -14,6 +15,7 @@ use std::hash::{DefaultHasher, Hash, Hasher}; use crate::class_map::GLOBAL_CLASS_MAP; use crate::constant::{COLOR_HASH, F_SPACE_RE, GLOBAL_STYLE_PROPERTY, ZERO_RE}; use crate::debug::is_debug; +use crate::num_to_nm_base::num_to_nm_base; use crate::optimize_value::optimize_value; use crate::style_selector::StyleSelector; use crate::utils::to_kebab_case; @@ -108,11 +110,13 @@ pub fn sheet_to_classname( style_order.unwrap_or(255) ); let mut map = GLOBAL_CLASS_MAP.lock().unwrap(); - map.get(&key).map(|v| format!("d{v}")).unwrap_or_else(|| { - let len = map.len(); - map.insert(key, len as i32); - format!("d{}", map.len() - 1) - }) + map.get(&key) + .map(|v| num_to_nm_base(*v as usize)) + .unwrap_or_else(|| { + let len = map.len(); + map.insert(key, len as i32); + num_to_nm_base(map.len() - 1) + }) } } @@ -139,11 +143,13 @@ pub fn sheet_to_variable_name(property: &str, level: u8, selector: Option<&str>) selector.unwrap_or_default().trim() ); let mut map = GLOBAL_CLASS_MAP.lock().unwrap(); - map.get(&key).map(|v| format!("--d{v}")).unwrap_or_else(|| { - let len = map.len(); - map.insert(key, len as i32); - format!("--d{}", map.len() - 1) - }) + map.get(&key) + .map(|v| format!("--{}", num_to_nm_base(*v as usize))) + .unwrap_or_else(|| { + let len = map.len(); + map.insert(key, len as i32); + format!("--{}", num_to_nm_base(map.len() - 1)) + }) } } @@ -164,15 +170,15 @@ mod tests { fn test_sheet_to_variable_name() { reset_class_map(); set_debug(false); - assert_eq!(sheet_to_variable_name("background", 0, None), "--d0"); + assert_eq!(sheet_to_variable_name("background", 0, None), "--a"); assert_eq!( sheet_to_variable_name("background", 0, Some("hover")), - "--d1" + "--b" ); - assert_eq!(sheet_to_variable_name("background", 1, None), "--d2"); + assert_eq!(sheet_to_variable_name("background", 1, None), "--c"); assert_eq!( sheet_to_variable_name("background", 1, Some("hover")), - "--d3" + "--d" ); } @@ -205,16 +211,16 @@ mod tests { reset_class_map(); assert_eq!( sheet_to_classname("background", 0, Some("red"), None, None), - "d0" + "a" ); assert_eq!( sheet_to_classname("background", 0, Some("red"), Some("hover"), None), - "d1" + "b" ); - assert_eq!(sheet_to_classname("background", 1, None, None, None), "d2"); + assert_eq!(sheet_to_classname("background", 1, None, None, None), "c"); assert_eq!( sheet_to_classname("background", 1, None, Some("hover"), None), - "d3" + "d" ); reset_class_map(); @@ -300,118 +306,106 @@ mod tests { ); reset_class_map(); - assert_eq!(sheet_to_classname("background", 0, None, None, None), "d0"); + assert_eq!(sheet_to_classname("background", 0, None, None, None), "a"); assert_eq!( sheet_to_classname("background", 0, None, None, Some(1)), - "d1" + "b" ); reset_class_map(); - assert_eq!( - sheet_to_classname("width", 0, Some("0px"), None, None), - "d0" - ); - assert_eq!( - sheet_to_classname("width", 0, Some("0em"), None, None), - "d0" - ); + assert_eq!(sheet_to_classname("width", 0, Some("0px"), None, None), "a"); + assert_eq!(sheet_to_classname("width", 0, Some("0em"), None, None), "a"); assert_eq!( sheet_to_classname("width", 0, Some("0rem"), None, None), - "d0" + "a" ); - assert_eq!( - sheet_to_classname("width", 0, Some("0vh"), None, None), - "d0" - ); - assert_eq!(sheet_to_classname("width", 0, Some("0%"), None, None), "d0"); + assert_eq!(sheet_to_classname("width", 0, Some("0vh"), None, None), "a"); + assert_eq!(sheet_to_classname("width", 0, Some("0%"), None, None), "a"); assert_eq!( sheet_to_classname("width", 0, Some("0dvh"), None, None), - "d0" + "a" ); assert_eq!( sheet_to_classname("width", 0, Some("0dvw"), None, None), - "d0" - ); - assert_eq!( - sheet_to_classname("width", 0, Some("0vw"), None, None), - "d0" + "a" ); - assert_eq!(sheet_to_classname("width", 0, Some("0"), None, None), "d0"); + assert_eq!(sheet_to_classname("width", 0, Some("0vw"), None, None), "a"); + assert_eq!(sheet_to_classname("width", 0, Some("0"), None, None), "a"); assert_eq!( sheet_to_classname("border", 0, Some("solid 0px red"), None, None), - "d1" + "b" ); assert_eq!( sheet_to_classname("border", 0, Some("solid 0% red"), None, None), - "d1" + "b" ); assert_eq!( sheet_to_classname("border", 0, Some("solid 0em red"), None, None), - "d1" + "b" ); assert_eq!( sheet_to_classname("border", 0, Some("solid 0rem red"), None, None), - "d1" + "b" ); assert_eq!( sheet_to_classname("border", 0, Some("solid 0vh red"), None, None), - "d1" + "b" ); assert_eq!( sheet_to_classname("border", 0, Some("solid 0vw red"), None, None), - "d1" + "b" ); assert_eq!( sheet_to_classname("border", 0, Some("solid 0dvh red"), None, None), - "d1" + "b" ); assert_eq!( sheet_to_classname("border", 0, Some("solid 0dvw red"), None, None), - "d1" + "b" ); assert_eq!( sheet_to_classname("test", 0, Some("0px 0"), None, None), - "d2" + "c" ); assert_eq!( sheet_to_classname("test", 0, Some("0em 0"), None, None), - "d2" + "c" ); assert_eq!( sheet_to_classname("test", 0, Some("0rem 0"), None, None), - "d2" + "c" ); assert_eq!( sheet_to_classname("test", 0, Some("0vh 0"), None, None), - "d2" + "c" ); assert_eq!( sheet_to_classname("test", 0, Some("0vw 0"), None, None), - "d2" + "c" ); assert_eq!( sheet_to_classname("test", 0, Some("0dvh 0"), None, None), - "d2" + "c" ); assert_eq!( sheet_to_classname("test", 0, Some("0 0vh"), None, None), - "d2" + "c" ); assert_eq!( sheet_to_classname("test", 0, Some("0 0vw"), None, None), - "d2" + "c" ); reset_class_map(); assert_eq!( sheet_to_classname("transition", 0, Some("all 0.3s ease-in-out"), None, None), - "d0" + "a" ); assert_eq!( sheet_to_classname("transition", 0, Some("all .3s ease-in-out"), None, None), - "d0" + "a" ); } diff --git a/libs/css/src/num_to_nm_base.rs b/libs/css/src/num_to_nm_base.rs new file mode 100644 index 00000000..681b2300 --- /dev/null +++ b/libs/css/src/num_to_nm_base.rs @@ -0,0 +1,134 @@ +use crate::constant::{M_BASE_ARRAY, N_BASE_ARRAY}; + +pub fn num_to_nm_base(num: usize) -> String { + if num == 0 { + return N_BASE_ARRAY[0].to_string(); + } + + let mut n = num; + let mut result = String::new(); + + let first_base = N_BASE_ARRAY.len(); + let other_base = M_BASE_ARRAY.len(); + + while n > 0 { + if n < first_base { + result.insert(0, N_BASE_ARRAY[n]); + break; + } else { + result.insert(0, M_BASE_ARRAY[(n - first_base) % other_base]); + n = (n - first_base) / other_base; + if n == 0 { + result.insert(0, N_BASE_ARRAY[0]); + break; + } + } + } + result +} + +#[cfg(test)] +mod tests { + use super::*; + use rstest::rstest; + + #[rstest] + #[case(0, "a")] + #[case(1, "b")] + #[case(2, "c")] + #[case(3, "d")] + #[case(4, "e")] + #[case(5, "f")] + #[case(6, "g")] + #[case(7, "h")] + #[case(8, "i")] + #[case(9, "j")] + #[case(10, "k")] + #[case(11, "l")] + #[case(12, "m")] + #[case(13, "n")] + #[case(14, "o")] + #[case(15, "p")] + #[case(16, "q")] + #[case(17, "r")] + #[case(18, "s")] + #[case(19, "t")] + #[case(20, "u")] + #[case(21, "v")] + #[case(22, "w")] + #[case(23, "x")] + #[case(24, "y")] + #[case(25, "z")] + #[case(26, "_")] + #[case(27, "aa")] + #[case(28, "ab")] + #[case(29, "ac")] + #[case(30, "ad")] + #[case(31, "ae")] + #[case(32, "af")] + #[case(33, "ag")] + #[case(34, "ah")] + #[case(35, "ai")] + #[case(36, "aj")] + #[case(37, "ak")] + #[case(38, "al")] + #[case(39, "am")] + #[case(40, "an")] + #[case(41, "ao")] + #[case(42, "ap")] + #[case(43, "aq")] + #[case(44, "ar")] + #[case(45, "as")] + #[case(46, "at")] + #[case(47, "au")] + #[case(48, "av")] + #[case(49, "aw")] + #[case(50, "ax")] + #[case(51, "ay")] + #[case(52, "az")] + #[case(53, "a0")] + #[case(54, "a1")] + #[case(55, "a2")] + #[case(56, "a3")] + #[case(57, "a4")] + #[case(58, "a5")] + #[case(59, "a6")] + #[case(60, "a7")] + #[case(61, "a8")] + #[case(62, "a9")] + #[case(63, "a-")] + #[case(64, "a_")] + #[case(65, "ba")] + #[case(66, "bb")] + #[case(67, "bc")] + #[case(68, "bd")] + #[case(69, "be")] + #[case(70, "bf")] + #[case(71, "bg")] + #[case(72, "bh")] + #[case(73, "bi")] + #[case(74, "bj")] + #[case(75, "bk")] + #[case(76, "bl")] + #[case(77, "bm")] + #[case(78, "bn")] + #[case(79, "bo")] + #[case(80, "bp")] + #[case(81, "bq")] + #[case(82, "br")] + #[case(83, "bs")] + #[case(84, "bt")] + #[case(85, "bu")] + #[case(86, "bv")] + #[case(87, "bw")] + #[case(88, "bx")] + #[case(89, "by")] + #[case(90, "bz")] + #[case(91, "b0")] + #[case(92, "b1")] + #[case(1052, "__")] + #[case(1053, "aaa")] + fn test_num_to_nm_base_rstest(#[case] input: usize, #[case] expected: &str) { + assert_eq!(num_to_nm_base(input), expected); + } +} diff --git a/libs/extractor/Cargo.toml b/libs/extractor/Cargo.toml index 34160d2d..d7888aae 100644 --- a/libs/extractor/Cargo.toml +++ b/libs/extractor/Cargo.toml @@ -4,13 +4,13 @@ version = "0.1.0" edition = "2024" [dependencies] -oxc_parser = "0.82.2" -oxc_syntax = "0.82.2" -oxc_span = "0.82.2" -oxc_allocator = "0.82.2" -oxc_ast = "0.82.2" -oxc_ast_visit = "0.82.2" -oxc_codegen = "0.82.2" +oxc_parser = "0.82.3" +oxc_syntax = "0.82.3" +oxc_span = "0.82.3" +oxc_allocator = "0.82.3" +oxc_ast = "0.82.3" +oxc_ast_visit = "0.82.3" +oxc_codegen = "0.82.3" css = { path = "../css" } phf = "0.12" strum = "0.27.2" diff --git a/libs/extractor/src/snapshots/extractor__tests__apply_var_typography-4.snap b/libs/extractor/src/snapshots/extractor__tests__apply_var_typography-4.snap index a54a8223..7b55cf25 100644 --- a/libs/extractor/src/snapshots/extractor__tests__apply_var_typography-4.snap +++ b/libs/extractor/src/snapshots/extractor__tests__apply_var_typography-4.snap @@ -14,5 +14,5 @@ ToBTreeSet { }, ), }, - code: "import \"@devup-ui/core/devup-ui.css\";\n
\n
;\n", + code: "import \"@devup-ui/core/devup-ui.css\";\n
\n
;\n", } diff --git a/libs/extractor/src/snapshots/extractor__tests__avoid_same_name_component.snap b/libs/extractor/src/snapshots/extractor__tests__avoid_same_name_component.snap index 09a66b94..0d152461 100644 --- a/libs/extractor/src/snapshots/extractor__tests__avoid_same_name_component.snap +++ b/libs/extractor/src/snapshots/extractor__tests__avoid_same_name_component.snap @@ -14,5 +14,5 @@ ToBTreeSet { }, ), }, - code: "import \"@devup-ui/core/devup-ui.css\";\nimport { Button } from \"@devup/ui\";\n
;\n