swc/node/binding/Cargo.toml
강동윤 f44e25c3af
fix(es/minifier): Improve output of minifier (#1990)
swc_common:
 - Add `Span.has_mark`.

swc_ecma_codegen:
 - Emit `1e3` for `1000`.
 - Optimize output. (#1986)

swc_ecma_minifier:
 - name mangler: Don't use keywords as an id.
 - `properties`: Optimize member expression with string properties.
 - `inline`: Inline some function expressions even if it's not fn-local.
 - `analyzer`: Track reassignment correctly.
 - `analyzer`: Track fn-local correctly.
 - `sequences`: Inject `void` if required.
 - `inline`: Inline function declarations correctly.
 - `sequences`: Merge expressions into test of if statements.
 - `sequences`: Reduce calls to an assigned variable.
 - Use `Marks` instead of `&dyn Comments`.


swc_ecma_transforms_optimization:
 - `expr_simplifier`: Fix infinite loops.

node/swc:
 - Ensure that `.transform` performs minification. (#1989)
2021-08-04 00:52:47 +09:00

36 lines
983 B
TOML

[package]
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
build = "build.rs"
edition = "2018"
exclude = ["artifacts.json", "index.node"]
license = "MIT"
name = "node"
publish = false
version = "0.1.0"
[lib]
crate-type = ["cdylib"]
[build-dependencies]
napi-build = {version = "1"}
[dependencies]
anyhow = "1"
backtrace = "0.3"
fxhash = "0.2"
log = {version = "0.4.14", features = ["release_max_level_off"]}
napi = {version = "1", features = ["serde-json"]}
napi-derive = {version = "1"}
path-clean = "0.1"
serde = {version = "1", features = ["derive"]}
serde_json = "1"
spack = {path = "../../spack"}
swc = {path = "../../"}
swc_atoms = {version = "0.2.4", path = "../../atoms"}
swc_babel_compat = {path = "../../babel/compat"}
swc_bundler = {path = "../../bundler"}
swc_common = {path = "../../common", features = ["tty-emitter", "sourcemap"]}
swc_ecma_ast = {path = "../../ecmascript/ast"}
swc_ecma_parser = {path = "../../ecmascript/parser"}
swc_node_base = {path = "../base"}