mirror of
https://github.com/swc-project/swc.git
synced 2025-01-03 02:54:43 +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`.
18 lines
398 B
Bash
Executable File
18 lines
398 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eux
|
|
|
|
|
|
# Prevent regression
|
|
./scripts/run.sh
|
|
|
|
export RUST_BACKTRACE=1
|
|
export RUST_LOG=swc_ecma_minifier=trace
|
|
|
|
UPDATE=1 cargo test -q --test compress projects__files --all-features || true
|
|
|
|
# # Make it easier to compare
|
|
# prettier --write tests/projects/output
|
|
# yarn run eslint --fix ./tests/projects/output/
|
|
|
|
# ls -al ./tests/projects/output
|
|
# ls -al ./tests/projects/refs |