2020-05-22 14:36:39 +03:00
|
|
|
[package]
|
2020-08-30 09:29:42 +03:00
|
|
|
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
|
2022-08-05 08:11:40 +03:00
|
|
|
build = "build.rs"
|
2021-12-30 12:59:18 +03:00
|
|
|
edition = "2021"
|
2020-08-30 09:29:42 +03:00
|
|
|
exclude = ["artifacts.json", "index.node"]
|
2021-12-19 08:14:12 +03:00
|
|
|
license = "Apache-2.0"
|
2022-08-05 08:11:40 +03:00
|
|
|
name = "binding_core_node"
|
2020-05-22 14:36:39 +03:00
|
|
|
publish = false
|
2020-08-30 09:29:42 +03:00
|
|
|
version = "0.1.0"
|
2020-05-22 14:36:39 +03:00
|
|
|
|
|
|
|
[lib]
|
2022-08-05 08:11:40 +03:00
|
|
|
bench = false
|
2020-05-22 14:36:39 +03:00
|
|
|
crate-type = ["cdylib"]
|
|
|
|
|
2021-12-12 16:52:58 +03:00
|
|
|
[features]
|
2022-08-05 08:11:40 +03:00
|
|
|
default = ["swc_v1", "plugin"]
|
|
|
|
plugin = ["swc_core/plugin_transform_host_native"]
|
2022-08-14 04:15:56 +03:00
|
|
|
swc_v1 = ["swc_core/bundler_node_v1"]
|
|
|
|
swc_v2 = ["swc_core/bundler_node_v2"]
|
2022-08-05 08:11:40 +03:00
|
|
|
|
2022-09-09 11:05:51 +03:00
|
|
|
# Experiemntal bytechecked plugin serialization / deserialization.
|
|
|
|
plugin_bytecheck = [
|
|
|
|
# We know what we're doing - enable internal features for the host plugin setup.
|
|
|
|
# "swc_core/__plugin_transform_host_bytecheck",
|
|
|
|
"swc_core/__plugin_transform_host_schema_v1",
|
|
|
|
"swc_core/__plugin_transform_env_native",
|
|
|
|
]
|
|
|
|
|
2022-08-05 08:11:40 +03:00
|
|
|
# Internal flag for testing purpose only.
|
|
|
|
__plugin_transform_vtest = [
|
|
|
|
# We know what we're doing - enable internal features for testing fixture setup.
|
|
|
|
"swc_core/__plugin_transform_host",
|
|
|
|
"swc_core/__plugin_transform_host_schema_vtest",
|
|
|
|
"swc_core/__plugin_transform_env_native",
|
2022-07-13 09:39:08 +03:00
|
|
|
]
|
2021-12-12 16:52:58 +03:00
|
|
|
|
2020-05-22 14:36:39 +03:00
|
|
|
[build-dependencies]
|
2022-06-11 12:09:07 +03:00
|
|
|
napi-build = { version = "2" }
|
2020-05-22 14:36:39 +03:00
|
|
|
|
|
|
|
[dependencies]
|
2022-11-02 07:53:22 +03:00
|
|
|
anyhow = "1.0.66"
|
2020-06-15 17:28:15 +03:00
|
|
|
backtrace = "0.3"
|
2022-06-11 12:09:07 +03:00
|
|
|
napi = { version = "2", default-features = false, features = [
|
2022-03-16 12:58:24 +03:00
|
|
|
"napi3",
|
|
|
|
"serde-json",
|
2022-06-11 12:09:07 +03:00
|
|
|
] }
|
|
|
|
napi-derive = { version = "2", default-features = false, features = [
|
2022-03-16 12:58:24 +03:00
|
|
|
"type-def",
|
2022-06-11 12:09:07 +03:00
|
|
|
] }
|
|
|
|
node_macro_deps = { path = "../node_macro_deps" }
|
2020-05-22 14:36:39 +03:00
|
|
|
path-clean = "0.1"
|
2022-09-30 10:57:15 +03:00
|
|
|
serde = { version = "1", features = ["derive"] }
|
2022-06-11 12:09:07 +03:00
|
|
|
serde_json = { version = "1", features = ["unbounded_depth"] }
|
2022-11-02 07:53:22 +03:00
|
|
|
tracing = { version = "0.1.37", features = ["release_max_level_info"] }
|
2022-03-31 10:11:31 +03:00
|
|
|
tracing-chrome = "0.5.0"
|
2022-02-25 07:06:45 +03:00
|
|
|
tracing-futures = "0.2.5"
|
2022-06-11 12:09:07 +03:00
|
|
|
tracing-subscriber = { version = "0.3.9", features = ["env-filter"] }
|
2022-08-05 08:11:40 +03:00
|
|
|
|
2022-11-16 08:42:35 +03:00
|
|
|
swc_core = { version = "0.43.15", features = [
|
2022-09-04 12:28:13 +03:00
|
|
|
"ecma_ast",
|
2022-08-05 08:11:40 +03:00
|
|
|
"common_concurrent",
|
|
|
|
"bundler",
|
2022-09-04 12:28:13 +03:00
|
|
|
"ecma_loader",
|
2022-10-11 14:49:30 +03:00
|
|
|
"ecma_transforms",
|
|
|
|
"ecma_visit",
|
2022-08-05 08:11:40 +03:00
|
|
|
"base_node",
|
|
|
|
"base_concurrent",
|
2022-10-11 14:49:30 +03:00
|
|
|
] }
|