[package] name = "swc-plugin-graphql-codegen-client-preset-optimizer-test" version = "0.1.0" edition = "2021" description = "SWC plugin for https://the-guild.dev/graphql/codegen/plugins/presets/preset-client" license = "MIT" [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] graphql-parser = "0.4.0" pathdiff = "0.2.1" serde = "1" serde_json = "1.0.91" swc_core = { version = "0.44.*", features = ["plugin_transform", "ecma_utils", "common", "testing" ] } swc_ecma_parser = "0.123.11" # .cargo/config defines few alias to build plugin. # cargo build-wasi generates wasm-wasi32 binary # cargo build-wasm32 generates wasm32-unknown-unknown binary.