[dependencies.anyhow]
version = "1.0.81"
[dependencies.dashmap]
optional = true
version = "5.5.3"
[dependencies.lru]
optional = true
version = "0.10.0"
[dependencies.once_cell]
optional = true
version = "1.19.0"
[dependencies.parking_lot]
optional = true
version = "0.12.1"
[dependencies.path-clean]
optional = true
version = "=0.1.0"
[dependencies.pathdiff]
version = "0.2.1"
[dependencies.serde]
features = ["derive"]
version = "1.0.197"
[dependencies.serde_json]
optional = true
version = "1.0.115"
[dependencies.swc_atoms]
version = "0.6.5"
[dependencies.swc_cached]
optional = true
version = "0.3.19"
[dependencies.swc_common]
version = "0.37.0"
[dependencies.tracing]
version = "0.1.40"
[dev-dependencies.lazy_static]
version = "1.4.0"
[features]
cache = ["lru", "parking_lot"]
default = []
node = ["normpath", "serde_json", "dashmap", "once_cell", "path-clean"]
tsc = ["dashmap", "once_cell", "swc_cached"]
[lib]
bench = false
name = "swc_ecma_loader"
path = "src/lib.rs"
[package]
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
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"
readme = false
repository = "https://github.com/swc-project/swc.git"
version = "0.49.1"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[target."cfg(windows)".dependencies.normpath]
optional = true
version = "0.2"
[[test]]
name = "node_resolver"
path = "tests/node_resolver.rs"
[[test]]
name = "tsc_resolver"
path = "tests/tsc_resolver.rs"