[package]
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "General ecmascript loader used for transforms"
documentation = "https://rustdoc.swc.rs/swc_ecma_loader/"
edition = "2021"
license = "Apache-2.0"
name = "swc_ecma_loader"
repository = "https://github.com/swc-project/swc.git"
version = "4.0.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lib]
bench = false
[features]
default = []
cache = ["lru", "parking_lot"]
node = ["normpath", "serde_json", "dashmap", "once_cell", "path-clean"]
tsc = ["dashmap", "once_cell", "swc_cached"]
[dependencies]
anyhow = { workspace = true }
dashmap = { workspace = true, optional = true }
lru = { workspace = true, optional = true }
once_cell = { workspace = true, optional = true }
parking_lot = { workspace = true, optional = true }
path-clean = { version = "=0.1.0", optional = true }
pathdiff = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true, optional = true }
tracing = { workspace = true }
swc_atoms = { version = "2.0.0", path = "../swc_atoms" }
swc_cached = { version = "1.0.0", optional = true, path = "../swc_cached" }
swc_common = { version = "4.0.0", path = "../swc_common" }
[dev-dependencies]
lazy_static = { workspace = true }
[target.'cfg(windows)'.dependencies]
normpath = { version = "0.2", optional = true }