Skip to content

Commit c7929bf

Browse files
authored
Add Rust-based transformer/packager/optimizer for HTML and SVG (#10090)
1 parent 3d72dd0 commit c7929bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+8942
-1505
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ members = [
88
[profile.canary]
99
inherits = "release"
1010
debug = true
11+
12+
[patch.crates-io]
13+
html5ever = { git = "https://github.com/devongovett/html5ever.git", branch = "xmlns-attrs" }
14+
xml5ever = { git = "https://github.com/devongovett/html5ever.git", branch = "xmlns-attrs" }
15+
markup5ever = { git = "https://github.com/devongovett/html5ever.git", branch = "xmlns-attrs" }
16+
markup5ever_rcdom = { git = "https://github.com/devongovett/html5ever.git", branch = "xmlns-attrs" }

crates/html/Cargo.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[package]
2+
authors = ["Devon Govett <[email protected]>"]
3+
name = "parcel-html"
4+
version = "0.1.0"
5+
edition = "2021"
6+
7+
[dependencies]
8+
html5ever = { git = "https://github.com/devongovett/html5ever.git", branch = "xmlns-attrs" }
9+
serde = { version = "1.0.123", features = ["derive"] }
10+
serde_bytes = "0.11.5"
11+
serde_json = "1.0.91"
12+
typed-arena = "2.0.2"
13+
xml5ever = { git = "https://github.com/devongovett/html5ever.git", branch = "xmlns-attrs" }
14+
cssparser = "0.34.0"
15+
oxvg_ast = { git = "https://github.com/devongovett/oxvg.git", branch = "parcel" }
16+
oxvg_optimiser = { git = "https://github.com/devongovett/oxvg.git", branch = "parcel" }
17+
anyhow = "*"
18+
selectors = "0.26"
19+
swc_core = { version = "21", features = [
20+
"common",
21+
"ecma_parser",
22+
"ecma_ast",
23+
"ecma_codegen",
24+
] }
25+
lightningcss = "1.0.0-alpha.63"
26+
convert_case = "0.6.0"
27+
indexmap = { version = "1.9.2", features = ["serde"] }
28+
ref-cast = "1.0"
29+
30+
[dev-dependencies]
31+
indoc = "1.0.3"

0 commit comments

Comments
 (0)