Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit b7bc705

Browse files
committed
Upgrade deps
1 parent dd27778 commit b7bc705

File tree

3 files changed

+53
-53
lines changed

3 files changed

+53
-53
lines changed

compiler/Cargo.lock

Lines changed: 42 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ crate-type = ["cdylib", "rlib"]
1414
anyhow = "1.0.56"
1515
base64 = "0.13.0"
1616
import_map = "0.9.0"
17-
indexmap = "1.8.0"
17+
indexmap = "1.8.1"
1818
lazy_static = "1.4.0"
1919
path-slash = "0.1.4"
2020
pathdiff = "0.2.1"
@@ -25,22 +25,22 @@ url = "2.2.2"
2525

2626
# parcel css
2727
cssparser = "0.29.2"
28-
parcel_css = "1.0.0-alpha.21"
28+
parcel_css = "1.0.0-alpha.22"
2929
parcel_sourcemap = "2.0.2"
3030

3131
# swc
3232
# docs: https://swc.rs
3333
# crate: https://crates.io/search?q=swc_ecmascript
3434
swc_atoms = "0.2.11"
35-
swc_common = { version = "0.17.19", features = ["sourcemap"] }
36-
swc_ecma_transforms = { version = "0.140.0", features = ["proposal", "typescript", "react" ] }
37-
swc_ecmascript = { version = "0.141.0", features = ["codegen", "parser", "utils", "visit"] }
35+
swc_common = { version = "0.17.21", features = ["sourcemap"] }
36+
swc_ecma_transforms = { version = "0.142.0", features = ["proposal", "typescript", "react" ] }
37+
swc_ecmascript = { version = "0.143.0", features = ["codegen", "parser", "utils", "visit"] }
3838

3939
# wasm-bindgen
4040
# docs: https://rustwasm.github.io/docs/wasm-bindgen
41-
wasm-bindgen = {version = "0.2.79", features = ["serde-serialize"] }
41+
wasm-bindgen = {version = "0.2.80", features = ["serde-serialize"] }
4242
console_error_panic_hook = { version = "0.1.7", optional = true }
43-
js-sys = "0.3.56"
43+
js-sys = "0.3.57"
4444

4545
[features]
4646
default = ["console_error_panic_hook"]

compiler/src/css.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ pub enum CompileError<'i> {
169169
impl<'i> CompileError<'i> {
170170
fn reason(&self) -> String {
171171
match self {
172-
CompileError::ParseError(e) => e.kind.reason(),
173-
CompileError::MinifyError(err) => err.kind.reason(),
174-
CompileError::PrinterError(err) => err.kind.reason(),
175-
CompileError::BundleError(err) => err.kind.reason(),
172+
CompileError::ParseError(e) => e.kind.to_string(),
173+
CompileError::MinifyError(err) => err.kind.to_string(),
174+
CompileError::PrinterError(err) => err.kind.to_string(),
175+
CompileError::BundleError(err) => err.kind.to_string(),
176176
_ => "Unknown error".into(),
177177
}
178178
}

0 commit comments

Comments
 (0)