Skip to content

Commit

Permalink
fix(swc_core): Fix typo in swc_core feature (#9979)
Browse files Browse the repository at this point in the history
- Fix typo in the `ecma_ast_serde` feature
- Add a `ecma_visit_serde` feature
  • Loading branch information
mischnic authored Jan 31, 2025
1 parent eebb0ea commit 99a6339
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/shy-apes-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
swc_core: patch
---

fix: Fix typo in swc_core feature
7 changes: 4 additions & 3 deletions crates/swc_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ common_concurrent = ["__common", "swc_common/concurrent"]
common_tty = ["__common", "swc_common/tty-emitter"]

# Enable swc_ecma_visit
ecma_visit = ["__visit"]
ecma_visit_path = ["__visit", "swc_ecma_visit/path"]
ecma_visit = ["__visit"]
ecma_visit_path = ["__visit", "swc_ecma_visit/path"]
ecma_visit_serde = ["__visit", "swc_ecma_visit/serde-impl"]

# Enable `quote!` macro support.
ecma_quote = [
Expand Down Expand Up @@ -135,7 +136,7 @@ testing_transform = ["__ecma", "__testing_transform"]
# Enable swc_ecma_ast / swc_atoms support.
# TODO: currently both are enabled at once, we may want to separate them.
ecma_ast = ["__ecma", "swc_ecma_ast", "swc_atoms"]
ecma_ast_serde = ["ecma_ast", "swc_ecma_ast/serde-impl", "swc_ecma_visit/serde"]
ecma_ast_serde = ["ecma_ast", "swc_ecma_ast/serde-impl"]

# Enable swc_ecma_parser support.
ecma_parser = ["__parser"]
Expand Down

0 comments on commit 99a6339

Please sign in to comment.