Cargo Features
swc_ecma_loader has no features set by default.
[dependencies]
swc_ecma_loader = { version = "3.0.0", features = ["cache", "node", "tsc"] }
- cache = lru, parking_lot
- node = dashmap, normpath, once_cell, path-clean, serde_json
-
Enable node js resolver
Affects
resolvers::node
… - tsc = dashmap, once_cell, swc_cached
-
Enable support for
paths
of tsconfig.jsonAffects
resolvers::tsc
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- dashmap node? tsc?
-
Enables dashmap ^5.5.3
- lru cache?
-
Enables lru ^0.10.0
Affects
resolvers::lru
… - once_cell node? tsc?
- parking_lot cache?
- path-clean node?
-
Enables path-clean =0.1.0
- serde_json node?
- swc_cached tsc?
- normpath win node?
-
Enables normpath ^0.2