[package]
name = "swc_plugin_preact_signals"
version = "0.1.0"
edition = "2021"
publish = false

[lib]
crate-type = ["cdylib", "rlib"]

[[test]]
name = "snapshot"
harness = false

[profile.release]
# This removes more dead code
codegen-units = 1
lto = true
# Optimize for size
opt-level = "s"
# Optimize for performance, this is default so you don't need to specify it
# opt-level = "z"

# Strip debug symbols
strip = "symbols"

[dependencies]
regex = "1.10.2"
serde = "1.0.217"
serde_json = "1.0.138"
swc_core = { version = "57.0.*", features = [
    "ecma_plugin_transform",
    "__parser",
    "__utils",
] }

# .cargo/config defines few alias to build plugin.
# cargo build-wasi generates wasm-wasi32 binary
# cargo build-wasm32 generates wasm32-unknown-unknown binary.
