swc/ecmascript/loader/Cargo.toml
Donny/강동윤 d0342a5a58
feat(swcpack): Enable concurrent mode (#2356)
swc_common:
 - Use `Mutex` from `parking_lot` instead of it from std.

swc_bundler:
 - Use `fxhash` if possible.
 - Don't `clone()` all modules if the entry has only one item.

swc_ecma_loader:
 - `NodeModulesResolver`: Use `path-clean` instead of `canonicalize`.

swc_ecma_transforms_optimization:
 - Reimplement `dce`

node_bundler:
 - Enable `concurrent` of `swc_bundler`.
2021-10-08 16:47:01 +09:00

43 lines
1.3 KiB
TOML

[package]
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "General ecmascript loader used for transforms"
documentation = "https://rustdoc.swc.rs/swc_ecma_loader/"
edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_loader"
repository = "https://github.com/swc-project/swc.git"
version = "0.20.1"
[package.metadata.docs.rs]
all-features = true
[features]
default = []
# Enable node js resolver
node = ["normpath", "serde", "serde_json", "dashmap", "once_cell", "path-clean"]
# Enable support for `paths` of tsconfig.json
tsc = ["dashmap", "once_cell", "regex"]
[dependencies]
anyhow = "1.0.41"
dashmap = {version = "4.0.2", optional = true}
lru = {version = "0.6.5", optional = true}
once_cell = {version = "1.8.0", optional = true}
path-clean = {version = "=0.1.0", optional = true}
regex = {version = "1", optional = true}
rustc-hash = "1.1.0"
serde = {version = "1.0.126", optional = true}
serde_json = {version = "1.0.64", optional = true}
swc_atoms = {version = "0.2.3", path = "../../atoms"}
swc_common = {version = "0.13.0", path = "../../common"}
swc_ecma_ast = {version = "0.54.0", path = "../ast"}
swc_ecma_visit = {version = "0.40.0", path = "../visit"}
tracing = "0.1.28"
[dev-dependencies]
testing = {version = "0.14.0", path = "../../testing"}
[target.'cfg(windows)'.dependencies]
normpath = {version = "0.2", optional = true}