-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
42 lines (37 loc) · 869 Bytes
/
Cargo.toml
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
39
40
41
42
[package]
authors = ["imhele <[email protected]>"]
description = "SWC plugin for JSX attrs"
edition = "2021"
license = "MIT"
name = "swc_plugin_jsx_attrs"
version = "0.2.0"
[lib]
crate-type = ["cdylib", "rlib"]
[profile.release]
lto = true
# Optimize for size
opt-level = "s"
# Strip debug symbols
strip = "symbols"
[dependencies]
regex = "1.5"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
swc_core = { version = "0.78.*", features = [
"cached",
"common",
"ecma_ast",
"ecma_plugin_transform",
"ecma_utils",
"ecma_visit",
] }
[dev-dependencies]
swc_core = { version = "0.78.*", features = [
"ecma_codegen",
"ecma_parser",
"testing_transform",
] }
testing = "0.33.13"
# .cargo/config defines few alias to build plugin.
# cargo build-wasi generates wasm-wasi32 binary
# cargo build-wasm32 generates wasm32-unknown-unknown binary.