swc/babel/compat/scripts/update.sh
강동윤 82ef06afb8
feat(babel/compat): Improve performance of babelify (#1626)
swc_babel_compat:
 - Optimize.

swc:
 - Improve performance of comment storage.
2021-05-06 14:56:54 +09:00

15 lines
361 B
Bash
Executable File

#!/usr/bin/env bash
SCRIPT_DIR="`dirname "$0"`"
IFS='' # maintain whitespace
for filename in $SCRIPT_DIR/../src/ast/*.rs; do
while read -r line; do
[[ "$line" =~ ^[[:space:]]*$ ]] && continue
[[ "$line" =~ ^[[:space:]]*# ]] && continue
[[ "$line" =~ ^[[:space:]]*\/ ]] && continue
echo "$line"
done < "$filename"
done