Repository navigation
feat: #242 create oxvg_jsx - #243
Merged
Merged
Conversation
noahbald
force-pushed
the
feat/242-oxvg_jsx
branch
5 times, most recently
from
July 28, 2026 13:25
e49203d to
0e24b20
Compare
noahbald
force-pushed
the
feat/242-oxvg_jsx
branch
2 times, most recently
from
July 28, 2026 21:58
3d1f9d8 to
775436f
Compare
noahbald
force-pushed
the
feat/242-oxvg_jsx
branch
4 times, most recently
from
July 29, 2026 07:07
8bf1502 to
f165c94
Compare
noahbald
force-pushed
the
feat/242-oxvg_jsx
branch
from
July 29, 2026 07:52
f165c94 to
4b35785
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a crate, package, and cli command similar to SVGR.
Motivation and Context
I thought it would be useful to have an alternative to SVGR (and
@svgo/jsx) which is greatly popular but also not closely maintained.The author himself mentions that future features should be built in Rust.
Additional thanks to Devon for passing on his implementation in Parcel for reference.
How Has This Been Tested?
oxvg_jsxand basic tests in@oxvg/jsxoxvg jsxcommand is tested manuallyBenchmarks
OXVG is at least 75x faster than SVGR in cli usage
--- config: xyChart: width: 622 height: 181 showDataLabel: true --- xychart horizontal title "Average build time (ms) in Oxygen icon theme" x-axis [svgr, "svgr --no-svgo", "oxvg jsx", "oxvg jsx --no-oxvg"] y-axis "Files (#)" 0 --> 163 bar [154.3, 162.4, 3.4, 2.2]Types of changes
Fixes
oxvg_ast::roxmltreeparses withFnOnceisntead ofFnMutFeatures
oxvg_jsxcrate@oxvg/jsxpackageoxvg jsxcommandChecklist: