swc/ecmascript/babel/compat/tests/compare.sh
강동윤 6896a83d54
fix(es/codegen): Fix codegen of ~ (#2104)
swc_ecma_codegen:
 - Emit pending semi on `~`. (#2091)
2021-08-19 17:21:08 +09:00

7 lines
203 B
Bash
Executable File

#!/usr/bin/env bash
# Print a side by side comparison of Babel and SWC AST.
SCRIPT_DIR=`dirname "$0"`
paste <(node "$SCRIPT_DIR/babelgen.js" $1) <(node "$SCRIPT_DIR/swcgen.js" $1) | column -s $'\t' -t