Files

52 lines
1.4 KiB
TOML

[package]
authors = ["강동윤 <[email protected]>"]
description = "wasm module for swc"
edition = { workspace = true }
license = { workspace = true }
name = "binding_minifier_wasm"
publish = false
repository = { workspace = true }
version = "1.15.47"
[lib]
bench = false
crate-type = ["cdylib"]
[features]
default = ["swc_v1"]
swc_v1 = []
swc_v2 = []
# This feature exists to allow cargo operations
# [TODO]: this is disabled due to signature mismatch between host_native and host_js,
# which causes build errors like
# .call(&mut self.store, ptr.0, ptr.1)
# | ^^^^ the trait `NativeWasmTypeInto` is not implemented for `u32`
# |
# = help: the following other types implement trait `NativeWasmTypeInto`:
# f32
# f64
# i32
# i64
# u128
plugin = []
[dependencies]
getrandom = { workspace = true, features = ["wasm_js"] }
serde = { workspace = true, features = ["derive"] }
swc_core = { path = "../../crates/swc_core", features = [
"ecma_ast_serde",
"ecma_codegen",
"binding_macro_wasm",
"ecma_transforms",
"ecma_visit",
] }
tracing = { workspace = true, features = ["max_level_off"] }
wasm-bindgen = { workspace = true, features = ["enable-interning"] }
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[package.metadata.cargo-shear]
# ignored, as they are only used to enable features
ignored = ["getrandom"]