swc-plugin-dev-expression 0.2.11

A port for SWC of babel-plugin-dev-expression, which expands __DEV__ and wraps invariant and warning calls
Documentation
[package]
name = "swc-plugin-dev-expression"
version = "0.2.11"
edition = "2021"
authors = ["Angel Wells"]
license = "GPL-3.0-or-later"
description = "A port for SWC of babel-plugin-dev-expression, which expands __DEV__ and wraps invariant and warning calls"
categories = ["wasm", "parsing"]
keywords = ["swc", "plugin"]
repository = "https://github.com/twnk/swc-plugin-dev-expression"

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

[profile.release]
# This removes more dead code
codegen-units = 1
lto = true
# Optimize for size
opt-level = "s"
# Optimize for performance, this is default so you don't need to specify it
# opt-level = "z"
 
# Strip debug symbols
strip = "symbols"


[dependencies]
serde = "1"
swc_core = {version = "0.59.5", features = [
    "ecma_plugin_transform",
    "ecma_utils",
    "ecma_visit",
    "ecma_ast",
    "common",
]}
tracing = { version = "0.1" }

# .cargo/config defines few alias to build plugin.
# cargo build-wasi generates wasm-wasi32 binary
# cargo build-wasm32 generates wasm32-unknown-unknown binary.