Skip to content

Commit

Permalink
build(preset-env/base): Upgrade browserslist-rs to v0.13.0 (#8229)
Browse files Browse the repository at this point in the history
**Description:**

Upgrade browserslist-rs, there was a major version change because wasm-pack functionality was split out into a feature:


browserslist/browserslist-rs@v0.12.4...v0.13.0

---------

Co-authored-by: 강동윤 (Donny) <kdy1997.dev@gmail.com>
  • Loading branch information
mischnic and kdy1 committed Nov 7, 2023
1 parent a072819 commit f9f305c
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 44 deletions.
11 changes: 4 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/preset_env_base/Cargo.toml
Expand Up @@ -13,7 +13,7 @@ bench = false
[dependencies]
ahash = "0.8.5"
anyhow = "1"
browserslist-rs = "0.12.2"
browserslist-rs = "0.13.0"
dashmap = "5.4.0"
once_cell = "1.18.0"
semver = { version = "1.0.17", features = ["serde"] }
Expand Down
1 change: 1 addition & 0 deletions crates/swc_core/tests/fixture/stub_wasm/Cargo.toml
Expand Up @@ -16,6 +16,7 @@ swc_v1 = []

[dependencies]
anyhow = "1.0.66"
browserslist-rs = { version = "0.13.0", features = ["wasm_bindgen"] }
serde = { version = "1", features = ["derive"] }
serde-wasm-bindgen = "0.4.5"
swc_core = { path = "../../../../swc_core", features = [
Expand Down
@@ -1,8 +1,6 @@
a {
-webkit-appearance: none;
appearance: none;
}
b {
-webkit-appearance: auto;
appearance: auto;
}
@@ -1,6 +1,3 @@
input:-webkit-autofill {
border: 3px solid blue;
}
input:autofill {
border: 3px solid blue;
}
Expand Down
@@ -1,4 +1,3 @@
.class {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
@@ -1,9 +1,7 @@
a {
-webkit-appearance: NONE;
appearance: NONE;
}
b {
-webkit-appearance: AUTO;
appearance: AUTO;
}
c {
Expand Down
Expand Up @@ -26,6 +26,5 @@
background-color: red;
}
.c::selection {
-webkit-backface-visibility: visible;
backface-visibility: visible;
}
Expand Up @@ -26,78 +26,62 @@
}
.test {
&.class::placeholder {
-webkit-appearance: auto;
appearance: auto;
}
}
.test {
-webkit-appearance: auto;
appearance: auto;
&.class {
color: red;
}
}
.test {
-webkit-appearance: auto;
appearance: auto;
&.class {
-webkit-appearance: auto;
appearance: auto;
}
}
.test {
@supports (foo: bar) {
-webkit-appearance: auto;
appearance: auto;
}
}
.test {
@media (orientation: landscape) {
-webkit-appearance: auto;
appearance: auto;
}
}
.test {
-webkit-appearance: auto;
appearance: auto;
&.class::placeholder {
-webkit-appearance: auto;
appearance: auto;
}
@media (orientation: landscape) {
-webkit-appearance: auto;
appearance: auto;
}
}
@media (orientation: landscape) {
.test {
&.class::placeholder {
-webkit-appearance: auto;
appearance: auto;
}
}
}
@media (orientation: landscape) {
.test {
-webkit-appearance: auto;
appearance: auto;
&.class {
-webkit-appearance: auto;
appearance: auto;
}
}
}
.test {
-webkit-appearance: none;
appearance: none;
&.class {
-webkit-appearance: auto;
appearance: auto;
&.class {
-webkit-appearance: menulist-button;
appearance: menulist-button;
&.class {
-webkit-appearance: button;
appearance: button;
}
}
Expand Down
Expand Up @@ -14,6 +14,5 @@ input::placeholder {
backdrop-filter: blur(2px);
}
input.appearance::placeholder {
-webkit-appearance: none;
appearance: none;
}
Expand Up @@ -7,9 +7,7 @@
appearance: auto;
}
.class-2 {
-webkit-appearance: none;
appearance: none;
-webkit-appearance: auto;
appearance: auto;
}
.class-3 {
Expand All @@ -33,9 +31,7 @@
-webkit-appearance: searchfield;
}
.class-7 {
-webkit-appearance: auto;
appearance: auto;
-webkit-appearance: -webkit-button;
appearance: -webkit-button;
}
.class-8 {
Expand Down
@@ -1,33 +1,27 @@
.class {
&.foo {
-webkit-appearance: auto;
appearance: auto;
}
@media all {
-webkit-appearance: auto;
appearance: auto;
}
}
@media (min-width: 50em) {
.foo {
-webkit-appearance: auto;
appearance: auto;
}
@supports (flex-wrap: wrap) {
.foo {
-webkit-appearance: auto;
appearance: auto;
}
}
}
@supports (flex-wrap: wrap) {
.foo {
-webkit-appearance: auto;
appearance: auto;
}
@media (min-width: 50em) {
.foo {
-webkit-appearance: auto;
appearance: auto;
}
}
Expand Down

0 comments on commit f9f305c

Please sign in to comment.