swc/crates/swc_estree_compat/tests/compare.sh
Donny/강동윤 790a262c07
refactor(es/estree): Rename: babel => estree (#2846)
swc_babel_ast:
 - Rename as `swc_estree_ast`.

swc_babel_compat:
 - Rename as `swc_estree_compat`.

swc_babel_visit:
 - Rename as `swc_estree_visit`.
2021-11-24 05:34:41 +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