[workspace]

[package]
edition = "2021"
name    = "stub_napi"
publish = false
version = "0.1.0"

[lib]
crate-type = ["cdylib"]

[features]
default = ["swc_v1", "plugin"]
plugin = [
  "swc_core/plugin_backend_wasmer",
  "swc_core/plugin_transform_host_native",
  "swc_core/plugin_transform_host_native_filesystem_cache",
]
swc_v1 = ["swc_core/bundler_node_v1"]
swc_v2 = ["swc_core/bundler_node_v2"]

# Internal flag for testing purpose only.
__plugin_transform_vtest = [
  "swc_core/__plugin_transform_host",
  "swc_core/__plugin_transform_host_schema_vtest",
  "swc_core/__plugin_transform_env_native",
]

[build-dependencies]
napi-build = { version = "2" }

[dependencies]
anyhow = "1.0.66"
backtrace = "0.3"
munge_macro = "=0.4.3"
napi = { version = "3", default-features = false, features = [
  "napi3",
  "serde-json",
] }
napi-derive = { version = "3", default-features = false, features = [
  "type-def",
] }
par-core = { version = "2", features = ["chili"] }
path-clean = "0.1"
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["unbounded_depth"] }
tracing = { version = "0.1.37", features = ["release_max_level_info"] }
tracing-chrome = "0.5.0"
tracing-futures = "0.2.5"
tracing-subscriber = { version = "0.3.9", features = ["env-filter"] }

swc_core = { path = "../../../../swc_core", features = [
  "ecma_ast",
  "common_concurrent",
  "bundler",
  "ecma_loader",
  "ecma_transforms",
  "ecma_visit",
  "base_node",
  "base_concurrent",
] }
