mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
c8b46bf6db
swc_ecma_codegen: - Don't panic on `Pat::Invalid`. - Fix codegen of unary minus. (#2213) swc_ecma_minifier: - Remove identifier of function expressions if a variable with same name exists. - `sequences`: Merge into the argument of a throw statement. - Use `ignore_return_value` for `void` expressions. - Improve inlining. - Drop last `return` if the return value is not used. - `sequences`: Merge `c++; use(c)` as `use(++c)`. - `sequences`: Merge assignments with an operator. - `comparisons`: Optimize the comparison operator if type is equivalent. - Fix `negate_cost`. - `unused`: Fix order or variable initalizer when variables are dropped. - Fix `top_retain` option. - `if_return`: Don't merge nested if it's wrong to do so. (#2214) - Fix negation of `if_return`.
25 lines
907 B
TOML
25 lines
907 B
TOML
[package]
|
|
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
|
|
description = "Ecmascript code generator for the swc project."
|
|
documentation = "https://rustdoc.swc.rs/swc_ecma_codegen/"
|
|
edition = "2018"
|
|
include = ["Cargo.toml", "src/**/*.rs"]
|
|
license = "Apache-2.0/MIT"
|
|
name = "swc_ecma_codegen"
|
|
repository = "https://github.com/swc-project/swc.git"
|
|
version = "0.70.1"
|
|
|
|
[dependencies]
|
|
bitflags = "1"
|
|
num-bigint = {version = "0.2", features = ["serde"]}
|
|
sourcemap = "6"
|
|
swc_atoms = {version = "0.2", path = "../../atoms"}
|
|
swc_common = {version = "0.12.0", path = "../../common"}
|
|
swc_ecma_ast = {version = "0.52.0", path = "../ast"}
|
|
swc_ecma_codegen_macros = {version = "0.5.2", path = "./macros"}
|
|
swc_ecma_parser = {version = "0.70.0", path = "../parser"}
|
|
|
|
[dev-dependencies]
|
|
swc_common = {version = "0.12.0", path = "../../common", features = ["sourcemap"]}
|
|
testing = {version = "0.13.0", path = "../../testing"}
|