forked from scttcper/swc-plugin-component-annotate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
38 lines (32 loc) · 1.22 KB
/
Cargo.toml
File metadata and controls
38 lines (32 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[package]
authors = ["scttcper <scttcper@gmail.com>"]
description = "[SWC plugin] Automatically annotate React components with data attributes for component tracking"
edition = "2021"
homepage = "https://github.com/scttcper/swc-plugin-component-annotate"
keywords = ["swc-plugin", "swc", "react", "jsx", "component", "tracking", "annotation"]
license = "MIT"
name = "swc-plugin-component-annotate"
readme = "README.md"
repository = "https://github.com/scttcper/swc-plugin-component-annotate"
version = "1.0.0"
[lib]
crate-type = ["cdylib", "lib"]
[dependencies]
rustc-hash = "2.1.1"
serde = { version = "1.0.217", features = ["derive"], default-features = false }
serde_json = { version = "1.0.134", default-features = false }
# Kept in line with rspack https://github.com/web-infra-dev/rspack/blob/main/Cargo.toml
swc_core = { version = "36.0.0", features = ["ecma_plugin_transform"] }
[dev-dependencies]
testing = "14.0.0"
swc_core = { version = "36.0.0", features = ["ecma_plugin_transform", "ecma_parser", "swc_ecma_transforms_testing"] }
[profile.release]
codegen-units = 1
lto = true
# Optimize for size
opt-level = "s"
# Strip debug symbols
strip = "symbols"
[profile.dev]
incremental = true
debug = 1