mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
82ef06afb8
swc_babel_compat: - Optimize. swc: - Improve performance of comment storage.
7 lines
203 B
Bash
Executable File
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
|