[package]
authors       = ["강동윤 <kdy1997.dev@gmail.com>"]
description   = "Types for configuring swc"
documentation = "https://rustdoc.swc.rs/swc_config/"
edition       = { workspace = true }
license       = { workspace = true }
name          = "swc_config"
repository    = { workspace = true }
version       = "4.0.1"


[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]


[features]
file_pattern = ["glob", "regex"]
glob         = ["dep:globset", "dep:dashmap", "dep:rustc-hash", "dep:once_cell"]
regex        = ["dep:regex", "dep:dashmap", "dep:rustc-hash", "dep:once_cell"]
regex_js     = ["dep:regress"]
sourcemap    = ["dep:swc_sourcemap"]

[dependencies]
anyhow        = { workspace = true }
bytes-str     = { workspace = true, features = ["serde"] }
dashmap       = { workspace = true, optional = true }
globset       = { workspace = true, optional = true }
indexmap      = { workspace = true }
once_cell     = { workspace = true, optional = true }
regex         = { workspace = true, optional = true }
regress       = { workspace = true, optional = true }
rustc-hash    = { workspace = true, optional = true }
serde         = { workspace = true, features = ["derive", "rc"] }
serde_json    = { workspace = true }
swc_sourcemap = { workspace = true, optional = true }

swc_config_macro = { version = "1.0.1", path = "../swc_config_macro" }

[lib]
bench = false
