-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathCargo.toml
More file actions
34 lines (28 loc) · 871 Bytes
/
Cargo.toml
File metadata and controls
34 lines (28 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[package]
name = "swc-plugin"
version = "0.2.0"
edition = "2021"
description = "SWC plugin for https://the-guild.dev/graphql/codegen/plugins/presets/preset-client"
license = "MIT"
publish = false
[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.105"
swc_core = { version = "65.0.*", features = ["ecma_plugin_transform", "ecma_visit", "ecma_utils", "ecma_parser", "common", "testing" ] }
# .cargo/config defines few alias to build plugin.
# cargo build-wasi generates wasm-wasi32 binary
# cargo build-wasm32 generates wasm32-unknown-unknown binary.