deno.land / x / esm@v135_2 / packages / esm-cjs-lexer / Cargo.toml

[package] name = "esm-cjs-lexer" version = "0.10.0" description = "A WASM module to parse the `module.exports` of a commonjs module for ESM converting." repository = "https://github.com/esm-dev/esm.sh" license = "MIT" edition = "2021" [lib] crate-type = ["cdylib", "rlib"] [features] default = ["console_error_panic_hook"] [dependencies] anyhow = "1.0.79" indexmap = "2.1.0" serde = { version = "1.0.195", features = ["derive"] } # swc # docs: https://swc.rs # crate: https://crates.io/search?q=swc swc_common = { version = "0.33.12", features = ["sourcemap"] } swc_ecmascript = { version = "0.237.21", features = ["parser", "visit"] } swc_ecma_ast = "0.110.17" swc_ecma_visit = "0.96.17" # wasm-bindgen # docs: https://rustwasm.github.io/docs/wasm-bindgen wasm-bindgen = {version = "0.2.90", features = ["serde-serialize"]} serde-wasm-bindgen = "0.6.3" console_error_panic_hook = { version = "0.1.7", optional = true } # We get build error without this # https://docs.rs/getrandom/latest/getrandom/#webassembly-support getrandom = { version = "0.2.12", features = ["js"] } [profile.release] # less code to include into binary panic = 'abort' # optimization over all codebase (better optimization, slower build) codegen-units = 1 # optimization for size (more aggressive) opt-level = 'z' # optimization for size # opt-level = 's' # link time optimization using using whole-program analysis lto = true
esm

Version Info

Tagged at
a year ago