swc/ecmascript/minifier/scripts/apply.sh
Donny/강동윤 e8a1710a21
fix(es/minifier): Fix bugs (#2283)
swc_ecma_transforms_optimization:
 - `expr_simplifier`: Don't inject `0` needlessly. (#2257)
2021-09-27 12:05:31 +00:00

18 lines
404 B
Bash
Executable File

#!/usr/bin/env bash
set -eux
# Prevent regression
./scripts/run.sh
export RUST_BACKTRACE=1
export RUST_LOG=debug,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